{"id":17849,"date":"2024-10-17T22:51:49","date_gmt":"2024-10-17T15:51:49","guid":{"rendered":"https:\/\/dp.rmutsv.ac.th\/?p=17849"},"modified":"2024-10-17T22:57:00","modified_gmt":"2024-10-17T15:57:00","slug":"automatic-home-with-node-red","status":"publish","type":"post","link":"https:\/\/dp.rmutsv.ac.th\/?p=17849","title":{"rendered":"Automatic home with Node-RED"},"content":{"rendered":"<h2 class=\"wp-block-post-title\">Automatic home with Node-RED<\/h2>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e1c\u0e39\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21 :<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. \u0e19\u0e32\u0e07\u0e2a\u0e32\u0e27 \u0e01\u0e31\u0e0d\u0e0d\u0e32\u0e23\u0e31\u0e15\u0e19\u0e4c \u0e44\u0e0a\u0e22\u0e0a\u0e34\u0e15 023 #COE16<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. \u0e19\u0e32\u0e22\u0e13\u0e31\u0e10\u0e01\u0e34\u0e15\u0e15\u0e34\u0e4c \u0e08\u0e31\u0e19\u0e17\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e4c 029 #COE16<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. \u0e19\u0e32\u0e22\u0e18\u0e19\u0e01\u0e24\u0e15 \u0e27\u0e23\u0e1e\u0e07\u0e04\u0e4c 034 #COE16<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e04\u0e13\u0e30\u0e27\u0e34\u0e28\u0e27\u0e01\u0e23\u0e23\u0e21\u0e28\u0e32\u0e2a\u0e15\u0e23\u0e4c<\/strong> \u0e2a\u0e32\u0e02\u0e32\u0e27\u0e34\u0e28\u0e27\u0e01\u0e23\u0e23\u0e21\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e27\u0e34\u0e0a\u0e32 :<\/strong> 04-513-201 \u0e01\u0e32\u0e23\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e02\u0e31\u0e49\u0e19\u0e2a\u0e39\u0e07 1\/2667<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>1. \u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e21\u0e32<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e19\u0e34\u0e22\u0e21\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e21\u0e32\u0e01\u0e43\u0e19\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19 \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01<br>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e2a\u0e1a\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e20\u0e32\u0e22\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19 \u0e40\u0e0a\u0e48\u0e19 \u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e2a\u0e07\u0e2a\u0e27\u0e48\u0e32\u0e07 \u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21<br>\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e44\u0e1f\u0e1f\u0e49\u0e32 \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 \u0e0b\u0e36\u0e48\u0e07\u0e42\u0e04\u0e23\u0e07\u0e01\u0e32\u0e23\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e19\u0e33\u0e40\u0e2a\u0e19\u0e2d\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19<br>\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49 Node-RED \u0e40\u0e1b\u0e47\u0e19\u0e41\u0e1e\u0e25\u0e15\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e2b\u0e25\u0e31\u0e01\u0e43\u0e19\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e41\u0e25\u0e30\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e20\u0e32\u0e22\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19 \u0e42\u0e14\u0e22<br>\u0e43\u0e0a\u0e49\u0e42\u0e1b\u0e23\u0e42\u0e15\u0e04\u0e2d\u0e25 MQTT \u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e37\u0e48\u0e2d\u0e01\u0e25\u0e32\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c IoT \u0e41\u0e25\u0e30\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c Node-RED<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Node-RED \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e20\u0e32\u0e1e\u0e2a\u0e39\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19 IoT \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e21\u0e35\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32<br>\u0e41\u0e1a\u0e1a\u0e01\u0e23\u0e32\u0e1f\u0e34\u0e01\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e07\u0e48\u0e32\u0e22 \u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e41\u0e25\u0e30\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07\u0e42\u0e1f\u0e25\u0e27\u0e4c (flow) \u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19 \u0e2d\u0e35\u0e01\u0e17\u0e31\u0e49\u0e07\u0e22\u0e31\u0e07<br>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e40\u0e0b\u0e47\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c \u0e40\u0e0a\u0e48\u0e19 \u0e40\u0e0b\u0e47\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e2a\u0e07 \u0e40\u0e0b\u0e47\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e31\u0e14\u0e23\u0e30\u0e22\u0e30 \u0e41\u0e25\u0e30\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14-\u0e1b\u0e34\u0e14<br>\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e19\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e19\u0e35\u0e49\u0e22\u0e31\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e42\u0e2b\u0e21\u0e14\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e14\u0e49\u0e17\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e41\u0e25\u0e30\u0e41\u0e1a\u0e1a<br>\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e14\u0e49\u0e27\u0e22\u0e21\u0e37\u0e2d<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>2. \u0e27\u0e31\u0e15\u0e16\u0e38\u0e1b\u0e23\u0e30\u0e2a\u0e07\u0e04\u0e4c<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.1 \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e2a\u0e1a\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e30\u0e1a\u0e1a\u0e44\u0e1f\u0e1f\u0e49\u0e32<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.2 \u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19 \u0e23\u0e30\u0e1a\u0e1a\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14-\u0e1b\u0e34\u0e14<br>\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e15\u0e32\u0e21\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e25\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49<br>\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.3 \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e04\u0e27\u0e32\u0e21\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a<br>\u0e41\u0e15\u0e48\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e1c\u0e48\u0e32\u0e19 Node-RED \u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<br>\u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e2b\u0e23\u0e37\u0e2d\u0e25\u0e14\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>3. \u0e02\u0e2d\u0e1a\u0e40\u0e02\u0e15<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.1 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e20\u0e32\u0e22\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19 \u0e17\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e41\u0e25\u0e30\u0e41\u0e1a\u0e1a\u0e41\u0e21\u0e19\u0e19\u0e27\u0e25<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.2 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a\u0e40\u0e0b\u0e47\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e30\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c IoT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.3 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e1c\u0e48\u0e32\u0e19 Node-RED<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.4 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e48\u0e32\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e43\u0e19 dashboard \u0e02\u0e2d\u0e07 Node-RED<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>4. \u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e17\u0e35\u0e48\u0e08\u0e30\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.1<strong> <\/strong>\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e44\u0e14\u0e49\u0e17\u0e38\u0e01\u0e17\u0e35\u0e48\u0e17\u0e38\u0e01\u0e40\u0e27\u0e25\u0e32 : \u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e17\u0e38\u0e01\u0e17\u0e35\u0e48\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15 \u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14-\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e2b\u0e49\u0e2d\u0e07\u0e19\u0e2d\u0e19, \u0e2b\u0e49\u0e2d\u0e07\u0e04\u0e23\u0e31\u0e27, \u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e27\u0e19 \u0e40\u0e1e\u0e35\u0e22\u0e07\u0e41\u0e04\u0e48\u0e43\u0e0a\u0e49\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c Node-RED \u0e1c\u0e48\u0e32\u0e19\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e1f\u0e0b\u0e17\u0e35\u0e48\u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e07\u0e48\u0e32\u0e22\u0e41\u0e25\u0e30\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e2a\u0e30\u0e14\u0e27\u0e01.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.2<strong> <\/strong>\u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19 : \u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 Automatic home \u0e41\u0e25\u0e30 Node-RED \u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e44\u0e14\u0e49 \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e40\u0e27\u0e25\u0e32\u0e40\u0e1b\u0e34\u0e14-\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e15\u0e32\u0e21\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e41\u0e21\u0e48\u0e19\u0e22\u0e33 \u0e41\u0e25\u0e30\u0e22\u0e31\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e2a\u0e20\u0e32\u0e1e\u0e41\u0e27\u0e14\u0e25\u0e49\u0e2d\u0e21 \u0e40\u0e0a\u0e48\u0e19 \u0e1b\u0e23\u0e31\u0e1a\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32\u0e41\u0e25\u0e30\u0e1b\u0e34\u0e14\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19\u0e2b\u0e32\u0e01\u0e44\u0e21\u0e48\u0e21\u0e35\u0e04\u0e19\u0e43\u0e0a\u0e49.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.3 \u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e41\u0e25\u0e30\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e2a\u0e1a\u0e32\u0e22 : \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e23\u0e30\u0e1a\u0e1a Automatic home \u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e21\u0e31\u0e48\u0e19\u0e04\u0e07 \u0e0a\u0e48\u0e27\u0e22\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a\u0e1a\u0e49\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e02\u0e2d\u0e07\u0e44\u0e1f\u0e44\u0e14\u0e49\u0e15\u0e25\u0e2d\u0e14\u0e40\u0e27\u0e25\u0e32 \u0e41\u0e25\u0e30\u0e22\u0e31\u0e07\u0e0a\u0e48\u0e27\u0e22\u0e25\u0e14\u0e04\u0e27\u0e32\u0e21\u0e40\u0e2a\u0e35\u0e48\u0e22\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e08\u0e30\u0e25\u0e37\u0e21\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e34\u0e49\u0e07\u0e44\u0e27\u0e49\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e44\u0e21\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e35\u0e01\u0e14\u0e49\u0e27\u0e22<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.4 \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19 : Node-RED \u0e43\u0e2b\u0e49\u0e04\u0e27\u0e32\u0e21\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e41\u0e25\u0e30\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e15\u0e32\u0e21\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e02\u0e2d\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 \u0e17\u0e33\u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07\u0e44\u0e14\u0e49\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e21\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e30\u0e2a\u0e20\u0e32\u0e1e\u0e41\u0e27\u0e14\u0e25\u0e49\u0e2d\u0e21\u0e17\u0e35\u0e48\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>5. \u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ESP32<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/thecustomizewindows.com\/2019\/03\/base64-encoding-on-esp32-arduino-base64-for-images\/\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"548\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/esp.png\" alt=\"\" class=\"wp-image-26585\" style=\"width:258px;height:auto\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/esp.png 768w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/esp-300x214.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/thecustomizewindows.cachefly.net\/wp-content\/uploads\/2019\/03\/Base64-Encoding-on-ESP32-Arduino.png\">https:\/\/thecustomizewindows.cachefly.net\/wp-content\/uploads\/2019\/03\/Base64-Encoding-on-ESP32-Arduino.png<\/a><\/p>\n\n\n\n<p class=\"has-text-align-left wp-block-paragraph\">ESP32 \u0e40\u0e1b\u0e47\u0e19\u0e44\u0e21\u0e42\u0e04\u0e23\u0e04\u0e2d\u0e19\u0e42\u0e17\u0e23\u0e25\u0e40\u0e25\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48 \u0e1e\u0e31\u0e12\u0e19\u0e32\u0e42\u0e14\u0e22\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 Espressif Systems \u0e21\u0e35 \u0e04\u0e38\u0e13\u0e2a\u0e21\u0e1a\u0e31\u0e15\u0e34\u0e40\u0e14\u0e48\u0e19\u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Wi-Fi \u0e41\u0e25\u0e30 Bluetooth \u0e20\u0e32\u0e22\u0e43\u0e19\u0e0a\u0e34\u0e1b\u0e40\u0e14\u0e35\u0e22\u0e27 \u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e22\u0e2d\u0e14\u0e19\u0e34\u0e22\u0e21\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32 \u0e42\u0e1b\u0e23\u0e40\u0e08\u0e47\u0e01\u0e15\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a Internet of Things (IoT) \u0e41\u0e25\u0e30\u0e2a\u0e21\u0e32\u0e23\u0e4c\u0e17\u0e42\u0e2e\u0e21\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e41\u0e1a\u0e1a\u0e44\u0e23\u0e49\u0e2a\u0e32\u0e22<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>LDR<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-1024x1024.jpg\" alt=\"\" class=\"wp-image-26594\" style=\"width:240px;height:auto\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-1024x1024.jpg 1024w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-300x300.jpg 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-150x150.jpg 150w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-768x768.jpg 768w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-1536x1536.jpg 1536w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-200x200.jpg 200w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr-320x320.jpg 320w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ldr.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/th.bing.com\/th\/id\/OIP.qOK8CRsIY3SyCVoDxcEc2AHaHa?rs=1&amp;pid=ImgDetMain\">https:\/\/th.bing.com\/th\/id\/OIP.qOK8CRsIY3SyCVoDxcEc2AHaHa?rs=1&amp;pid=ImgDetMain<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e31\u0e14\u0e04\u0e27\u0e32\u0e21\u0e40\u0e02\u0e49\u0e21\u0e41\u0e2a\u0e07\u0e17\u0e35\u0e48\u0e15\u0e32\u0e21\u0e2d\u0e07 \u0e40\u0e2b\u0e47\u0e19 \u0e20\u0e32\u0e22\u0e43\u0e19\u0e42\u0e21\u0e14\u0e39\u0e25\u0e40\u0e1b\u0e47\u0e19 LDR \u0e41\u0e25\u0e30\u0e43\u0e0a\u0e49\u0e41\u0e2a\u0e07 \u0e19\u0e33\u0e17\u0e32\u0e07\u0e40\u0e1b\u0e47\u0e19 LED \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e04\u0e27\u0e32\u0e21\u0e40\u0e02\u0e49\u0e21 \u0e41\u0e2a\u0e07\u0e02\u0e2d\u0e07\u0e27\u0e31\u0e15\u0e16\u0e38\u0e17\u0e35\u0e48\u0e41\u0e2a\u0e07 LED \u0e15\u0e01\u0e01\u0e23\u0e30\u0e17\u0e1a\u0e41\u0e25\u0e30 \u0e2a\u0e30\u0e17\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32 \u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 0-1023 \u0e41\u0e1a\u0e1a Analog \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e01\u0e15\u0e4c\u0e43\u0e0a\u0e49\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e15\u0e23\u0e27\u0e08 \u0e08\u0e31\u0e1a\u0e27\u0e31\u0e15\u0e16\u0e38\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e07\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32 \u0e2b\u0e23\u0e37\u0e2d\u0e15\u0e23\u0e27\u0e08\u0e08\u0e31\u0e1a\u0e40\u0e2a\u0e49\u0e19 \u0e02\u0e32\u0e27\u0e14\u0e33\u0e44\u0e14\u0e49 \u0e43\u0e0a\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2b\u0e32\u0e27\u0e31\u0e15\u0e16\u0e38 \u0e2b\u0e23\u0e37\u0e2d\u0e15\u0e23\u0e27\u0e08\u0e08\u0e31\u0e1a \u0e40\u0e2a\u0e49\u0e19\u0e02\u0e32\u0e27\/\u0e14\u0e33<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ultrasonic Sensor <\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"1000\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor.jpg\" alt=\"\" class=\"wp-image-26597\" style=\"width:253px;height:auto\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor.jpg 1000w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor-300x300.jpg 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor-150x150.jpg 150w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor-768x768.jpg 768w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor-200x200.jpg 200w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/ultrasonic-sensor-320x320.jpg 320w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/www.easyelectronics.in\/image\/cache\/catalog\/Products\/ultrasonic-sensor-1000x1000.jpg\">https:\/\/www.easyelectronics.in\/image\/cache\/catalog\/Products\/ultrasonic-sensor-1000&#215;1000.jpg<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">HC-SR04 Ultrasonic Sensor \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e04\u0e25\u0e37\u0e48\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e27\u0e31\u0e14 \u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e27\u0e31\u0e15\u0e16\u0e38 \u0e42\u0e14\u0e22\u0e2d\u0e32\u0e28\u0e31\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e30\u0e17\u0e49\u0e2d\u0e19 \u0e01\u0e25\u0e31\u0e1a\u0e02\u0e2d\u0e07\u0e04\u0e25\u0e37\u0e48\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07 \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e25\u0e37\u0e48\u0e19\u0e2d\u0e31\u0e25\u0e15\u0e23\u0e49\u0e32\u0e42\u0e0b\u0e19\u0e34\u0e04\u0e17\u0e35\u0e48\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e16\u0e35\u0e48\u0e2a\u0e39\u0e07\u0e01\u0e27\u0e48\u0e32\u0e0a\u0e48\u0e27\u0e07\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e22\u0e34\u0e19\u0e02\u0e2d\u0e07 \u0e21\u0e19\u0e38\u0e29\u0e22\u0e4c \u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e47\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e19\u0e35\u0e49\u0e40\u0e23\u0e35\u0e22\u0e01 \u0e27\u0e48\u0e32 &#8220;Time of Flight&#8221; \u0e42\u0e14\u0e22\u0e08\u0e30\u0e04\u0e33\u0e19\u0e27\u0e13\u0e23\u0e30\u0e22\u0e30 \u0e17\u0e32\u0e07\u0e08\u0e32\u0e01\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e04\u0e25\u0e37\u0e48\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e40\u0e14\u0e34\u0e19\u0e17\u0e32\u0e07\u0e08\u0e32\u0e01 \u0e40\u0e0b\u0e47\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e27\u0e31\u0e15\u0e16\u0e38\u0e41\u0e25\u0e30\u0e2a\u0e30\u0e17\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Relay<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"462\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c-edited-1.jpg\" alt=\"\" class=\"wp-image-26696\" style=\"width:278px;height:auto\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c-edited-1.jpg 462w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c-edited-1-300x300.jpg 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c-edited-1-150x150.jpg 150w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c-edited-1-200x200.jpg 200w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c-edited-1-320x320.jpg 320w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/image.makewebcdn.com\/makeweb\/m_1920x0\/CRsULoX9c\/DefaultData\/%E0%B8%A3%E0%B8%B5%E0%B9%80%E0%B8%A5%E0%B8%A2%E0%B9%8C.jpg\">https:\/\/image.makewebcdn.com\/makeweb\/m_1920x0\/CRsULoX9c\/DefaultData\/%E0%B8%A3%E0%B8%B5%E0%B9%80%E0%B8%A5%E0%B8%A2%E0%B9%8C.jpg<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e04\u0e37\u0e2d \u0e2a\u0e27\u0e34\u0e15\u0e0a\u0e4c\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e41\u0e21\u0e48\u0e40\u0e2b\u0e25\u0e47\u0e01\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e1b\u0e34\u0e14\u0e2b\u0e19\u0e49\u0e32\u0e2a\u0e31\u0e21\u0e1c\u0e31\u0e2a\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e49\u0e2d\u0e22\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e2a\u0e31\u0e21\u0e1c\u0e31\u0e2a \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e41\u0e25\u0e30\u0e2d\u0e34\u0e40\u0e25\u0e47\u0e01\u0e17\u0e23\u0e2d\u0e19\u0e34\u0e01\u0e2a\u0e4c \u0e21\u0e31\u0e01\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e27\u0e07\u0e08\u0e23\u0e01\u0e33\u0e25\u0e31\u0e07\u0e44\u0e1f\u0e2a\u0e39\u0e07\u0e14\u0e49\u0e27\u0e22\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e01\u0e33\u0e25\u0e31\u0e07\u0e15\u0e48\u0e33<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Node-RED<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/node-red-1024x538.png\" alt=\"\" class=\"wp-image-26699\" style=\"width:339px;height:auto\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/node-red-1024x538.png 1024w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/node-red-300x158.png 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/node-red-768x403.png 768w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/node-red.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/www.stackhero.io\/assets\/src\/images\/servicesLogos\/openGraphVersions\/node-red.png?481ffe83\">https:\/\/www.stackhero.io\/assets\/src\/images\/servicesLogos\/openGraphVersions\/node-red.png?481ffe83<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e04\u0e37\u0e2d\u0e41\u0e1e\u0e25\u0e15\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e42\u0e2d\u0e40\u0e1e\u0e19\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a \u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e1c\u0e48\u0e32\u0e19\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e41\u0e1a\u0e1a \u0e40\u0e27\u0e34\u0e23\u0e4c\u0e01\u0e42\u0e1f\u0e25\u0e27\u0e4c \u0e0b\u0e36\u0e48\u0e07\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e42\u0e14\u0e22 IBM Node- RED \u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15\u0e43\u0e2b\u0e49\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c \u0e2e\u0e32\u0e23\u0e4c\u0e14\u0e41\u0e27\u0e23\u0e4c API \u0e41\u0e25\u0e30\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e1c\u0e48\u0e32\u0e19 &#8220;nodes&#8221; \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e25\u0e48\u0e27\u0e07\u0e2b\u0e19\u0e49\u0e32 \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07 \u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e14\u0e49\u0e27\u0e22\u0e21\u0e37\u0e2d\u0e21\u0e32\u0e01\u0e19\u0e31\u0e01 \u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a \u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19\u0e14\u0e49\u0e32\u0e19 IoT \u0e41\u0e25\u0e30\u0e01\u0e32\u0e23 \u0e17\u0e33\u0e07\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e15\u0e48\u0e32\u0e07\u0e46<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MQTT<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"406\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/OIP-5.jpg\" alt=\"\" class=\"wp-image-26705\" style=\"width:266px;height:auto\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/OIP-5.jpg 474w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/OIP-5-300x257.jpg 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><a href=\"https:\/\/antomatix.com\/wp-content\/uploads\/2023\/02\/mqtt-ver.png\">https:\/\/antomatix.com\/wp-content\/uploads\/2023\/02\/mqtt-ver.png<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e1b\u0e47\u0e19 Protocol \u0e17\u0e35\u0e48\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e21\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e32\u0e23 \u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e41\u0e1a\u0e1a M2M (machine to machine) \u0e04\u0e37\u0e2d \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c \u0e42\u0e14\u0e22 \u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35 IoT \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19 \u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35\u0e17\u0e35\u0e48\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c \u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e40\u0e0a\u0e48\u0e19 \u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c\u0e21\u0e37\u0e2d\u0e16\u0e37\u0e2d \u0e23\u0e16\u0e22\u0e19\u0e15\u0e4c \u0e42\u0e17\u0e23\u0e17\u0e31\u0e28\u0e19\u0e4c \u0e15\u0e39\u0e49\u0e40\u0e22\u0e47\u0e19 \u0e40\u0e02\u0e49\u0e32\u0e01\u0e31\u0e1a\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e42\u0e22\u0e07 \u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e1c\u0e48\u0e32\u0e19\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22 \u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e21\u0e19\u0e38\u0e29\u0e22\u0e4c\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16 \u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21 \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e2d\u0e37\u0e48\u0e19\u0e44\u0e14\u0e49<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Code<\/strong> \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e41\u0e25\u0e30\u0e44\u0e25\u0e1a\u0e23\u0e32\u0e23\u0e35<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;WiFi.h&gt;\n#include &lt;PubSubClient.h&gt;\n\n\/\/ WiFi\nconst char* ssid = \"\u0e0a\u0e37\u0e48\u0e2d WiFi\"; \nconst char* password = \"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19 WiFi\"; \n\n\/\/ Ultrasonic Sensor\nconst int trigPin = 12;\nconst int echoPin = 14;\n#define SOUND_SPEED 0.034\n#define CM_TO_INCH 0.393701\n\nlong duration;\nfloat distanceCm;\nfloat distanceInch;\n\n\/\/ Grayscale Sensor (LDR)\nconst int ldrPin = 36;\n\n\/\/ Relay Pins\nconst int relay1 = 5;\nconst int relay2 = 4;\nconst int relay3 = 16;\nconst int relay4 = 17;\n\n\/\/ MQTT Broker\nconst char* mqtt_broker = \"\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48 MQTT Broker\";\nconst char* topic = \"sensor\/esp32\";\nconst char* relay_topic = \"relay\/esp32\";\nconst char* ldr_topic = \"ldr\/esp32\";\nconst char* mqtt_username = \"123\";\nconst char* mqtt_password = \"123\";\nconst int mqtt_port = 1883;\n\nWiFiClient espClient;\nPubSubClient client(espClient);\n\n\/\/ Control mode\nint controlMode = 0;\n\n\/\/ Default thresholds\nfloat distanceThreshold = 10.0;\nint ldrThreshold = 50;\n\n\/\/ Relay default delays\nunsigned long relay1Delay = 10 * 1000;\nunsigned long relay2Delay = 10 * 1000;\n\n\/\/ Time variables for relay\nunsigned long relay1OnTime = 0;\nunsigned long relay2OnTime = 0;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Code<\/strong> \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21 MQTT<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void callback(char* topic, byte* message, unsigned int length) {\n  String messageTemp;\n  for (int i = 0; i &lt; length; i++) {\n    messageTemp += (char)message&#091;i];\n  }\n\n  \/\/ \u0e1b\u0e23\u0e31\u0e1a\u0e42\u0e2b\u0e21\u0e14\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\n  if (String(topic) == \"relay\/esp32\") {\n    if (messageTemp == \"mode_manual\") {\n      controlMode = 1;\n      Serial.println(\"Control mode set to MANUAL\");\n    } else if (messageTemp == \"mode_auto\") {\n      controlMode = 0;\n      Serial.println(\"Control mode set to AUTO\");\n    }\n\n    \/\/ \u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e41\u0e21\u0e19\u0e19\u0e27\u0e25\n    if (controlMode == 1) {\n      if (messageTemp == \"relay1_on\") {\n        digitalWrite(relay1, LOW);\n        Serial.println(\"Relay 1 ON\");\n      } else if (messageTemp == \"relay1_off\") {\n        digitalWrite(relay1, HIGH);\n        Serial.println(\"Relay 1 OFF\");\n      } else if (messageTemp == \"relay2_on\") {\n        digitalWrite(relay2, LOW);\n        Serial.println(\"Relay 2 ON\");\n      } else if (messageTemp == \"relay2_off\") {\n        digitalWrite(relay2, HIGH);\n        Serial.println(\"Relay 2 OFF\");\n      }\n    }\n\n    \/\/ \u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 3 \u0e41\u0e25\u0e30 4\n    if (messageTemp == \"relay3_on\") {\n      digitalWrite(relay3, LOW);\n      Serial.println(\"Relay 3 ON\");\n    } else if (messageTemp == \"relay3_off\") {\n      digitalWrite(relay3, HIGH);\n      Serial.println(\"Relay 3 OFF\");\n    } else if (messageTemp == \"relay4_on\") {\n      digitalWrite(relay4, LOW);\n      Serial.println(\"Relay 4 ON\");\n    } else if (messageTemp == \"relay4_off\") {\n      digitalWrite(relay4, HIGH);\n      Serial.println(\"Relay 4 OFF\");\n    }\n  }\n\n  \/\/ \u0e1b\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e40\u0e01\u0e13\u0e11\u0e4c\u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\n  if (String(topic) == \"threshold\/distance\") {\n    distanceThreshold = messageTemp.toFloat();\n    Serial.print(\"Distance threshold set to: \");\n    Serial.println(distanceThreshold);\n  }\n\n  \/\/ \u0e1b\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e40\u0e01\u0e13\u0e11\u0e4c LDR\n  if (String(topic) == \"threshold\/ldr\") {\n    ldrThreshold = messageTemp.toInt();\n    Serial.print(\"LDR threshold set to: \");\n    Serial.println(ldrThreshold);\n  }\n\n  \/\/ \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e02\u0e2d\u0e07\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 1\n  if (String(topic) == \"relay1\/time\") {\n    relay1Delay = messageTemp.toInt() * 1000;\n    Serial.print(\"Relay 1 time set to: \");\n    Serial.print(relay1Delay \/ 1000);\n    Serial.println(\" seconds\");\n  }\n\n  \/\/ \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e02\u0e2d\u0e07\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 2\n  if (String(topic) == \"relay2\/time\") {\n    relay2Delay = messageTemp.toInt() * 1000;\n    Serial.print(\"Relay 2 time set to: \");\n    Serial.print(relay2Delay \/ 1000);\n    Serial.println(\" seconds\");\n  }\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Code<\/strong> \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d WiFi \u0e41\u0e25\u0e30 MQTT<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void get_network_info() {\n  if (WiFi.status() == WL_CONNECTED) {\n    Serial.println(\"WiFi connected\");\n    Serial.println(\"&#091;+] ESP32 IP: \" + WiFi.localIP().toString());\n  }\n}\n\nvoid reconnect() {\n  while (!client.connected()) {\n    String client_id = \"esp32-client-\";\n    client_id += String(WiFi.macAddress());\n    if (client.connect(client_id.c_str(), mqtt_username, mqtt_password)) {\n      Serial.println(\"Connected to MQTT broker\");\n      client.subscribe(relay_topic);\n      client.subscribe(\"threshold\/distance\");\n      client.subscribe(\"threshold\/ldr\");\n      client.subscribe(\"relay1\/time\");\n      client.subscribe(\"relay2\/time\");\n      client.publish(topic, \"Reconnected: Hello, I'm ESP32 ^^\");\n    } else {\n      Serial.print(\"Failed to connect. State: \");\n      Serial.println(client.state());\n      delay(2000);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Code<\/strong> \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e43\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19 setup()<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void setup() {\n  Serial.begin(115200);\n  delay(1000);\n\n  \/\/ \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 WiFi\n  WiFi.begin(ssid, password);\n  while (WiFi.status() != WL_CONNECTED) {\n    delay(500);\n    Serial.print(\".\");\n  }\n  get_network_info();\n\n  \/\/ \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e30\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c\n  pinMode(trigPin, OUTPUT);\n  pinMode(echoPin, INPUT);\n  pinMode(relay1, OUTPUT);\n  pinMode(relay2, OUTPUT);\n  pinMode(relay3, OUTPUT);\n  pinMode(relay4, OUTPUT);\n  digitalWrite(relay1, HIGH);\n  digitalWrite(relay2, HIGH);\n  digitalWrite(relay3, HIGH);\n  digitalWrite(relay4, HIGH);\n\n  \/\/ \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 MQTT\n  client.setServer(mqtt_broker, mqtt_port);\n  client.setCallback(callback);\n  reconnect();\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Code<\/strong> \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e25\u0e39\u0e1b\u0e2b\u0e25\u0e31\u0e01 loop()<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void loop() {\n  if (!client.connected()) {\n    reconnect();\n  }\n  client.loop();\n\n  if (controlMode == 0) {  \/\/ \u0e42\u0e2b\u0e21\u0e14\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\n    \/\/ \u0e27\u0e31\u0e14\u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2d\u0e31\u0e25\u0e15\u0e23\u0e49\u0e32\u0e42\u0e0b\u0e19\u0e34\u0e04\n    digitalWrite(trigPin, LOW);\n    delayMicroseconds(2);\n    digitalWrite(trigPin, HIGH);\n    delayMicroseconds(10);\n    digitalWrite(trigPin, LOW);\n    duration = pulseIn(echoPin, HIGH);\n    distanceCm = duration * SOUND_SPEED \/ 2;\n    Serial.print(\"Distance (cm): \");\n    Serial.println(distanceCm);\n\n    \/\/ \u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 2 \u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e08\u0e32\u0e01\u0e40\u0e01\u0e13\u0e11\u0e4c\u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\n    if (distanceCm &lt; distanceThreshold) {\n      digitalWrite(relay2, LOW);\n      relay2OnTime = millis();\n      Serial.println(\"Relay 2 ON (Auto)\");\n    }\n\n    if (millis() - relay2OnTime &gt;= relay2Delay) {\n      digitalWrite(relay2, HIGH);\n      Serial.println(\"Relay 2 OFF (Auto, timed)\");\n    }\n\n    \/\/ \u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 LDR\n    int ldrValueRaw = analogRead(ldrPin);\n    int ldrValue = map(ldrValueRaw, 0, 4095, 0, 100);\n    Serial.print(\"LDR Value (0-100): \");\n    Serial.println(ldrValue);\n\n    \/\/ \u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 1 \u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e08\u0e32\u0e01\u0e40\u0e01\u0e13\u0e11\u0e4c LDR\n    if (ldrValue &lt; ldrThreshold) {\n      digitalWrite(relay1, LOW);\n      relay1OnTime = millis();\n      Serial.println(\"Relay 1\n<\/code><\/pre>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>6. \u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e07\u0e32\u0e19<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Diagram : \u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"199\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-215915-1.png\" alt=\"\" class=\"wp-image-26723\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-215915-1.png 401w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-215915-1-300x149.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Flowchart : \u0e25\u0e33\u0e14\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"416\" height=\"640\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220200.png\" alt=\"\" class=\"wp-image-26726\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220200.png 416w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220200-195x300.png 195w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 1&nbsp;<\/strong>\u0e28\u0e36\u0e01\u0e29\u0e32\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e04\u0e27\u0e32\u0e21\u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e01\u0e48\u0e2d\u0e19\u0e17\u0e33\u0e07\u0e32\u0e19\u0e08\u0e23\u0e34\u0e07<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 2<\/strong>&nbsp;\u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e33\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e04\u0e4a\u0e14\u0e41\u0e25\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e42\u0e21\u0e40\u0e14\u0e25\u0e08\u0e33\u0e25\u0e2d\u0e07<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 3&nbsp;<\/strong>\u0e2a\u0e23\u0e38\u0e1b\u0e1c\u0e25\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1<\/strong>.<strong>\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30\u0e2a\u0e48\u0e27\u0e19 <\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e41\u0e1a\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19 2 \u0e2a\u0e48\u0e27\u0e19\u0e04\u0e37\u0e2d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07 \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e17\u0e14\u0e25\u0e2d\u0e07\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e16\u0e49\u0e32\u0e21\u0e35\u0e04\u0e19\u0e40\u0e14\u0e34\u0e19\u0e1c\u0e48\u0e32\u0e19\u0e23\u0e30\u0e22\u0e30 \u0e44\u0e1f\u0e14\u0e27\u0e07\u0e17\u0e35\u0e48 1 \u0e08\u0e30\u0e15\u0e34\u0e14<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30 \u0e16\u0e49\u0e32\u0e21\u0e35\u0e41\u0e2a\u0e07\u0e44\u0e21\u0e48\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e1e\u0e2d \u0e44\u0e1f\u0e14\u0e27\u0e07\u0e17\u0e35\u0e48 2 \u0e08\u0e30\u0e15\u0e34\u0e14 \u0e15\u0e32\u0e21\u0e43\u0e19\u0e41\u0e1a\u0e1a\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1219\" height=\"576\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220629.png\" alt=\"\" class=\"wp-image-26732\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220629.png 1219w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220629-300x142.png 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220629-1024x484.png 1024w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-220629-768x363.png 768w\" sizes=\"auto, (max-width: 1219px) 100vw, 1219px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">2.\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07 \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e40\u0e2d\u0e07\u0e1c\u0e48\u0e32\u0e19 Node-RED<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e01\u0e32\u0e23\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e43\u0e19\u0e1a\u0e49\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e40\u0e2d\u0e07\u0e1c\u0e48\u0e32\u0e19 Node-RED \u0e17\u0e14\u0e25\u0e2d\u0e07\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e42\u0e14\u0e22\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14-\u0e1b\u0e34\u0e14<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"659\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-221040-1024x659.png\" alt=\"\" class=\"wp-image-26735\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-221040-1024x659.png 1024w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-221040-300x193.png 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-221040-768x494.png 768w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-221040.png 1179w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>7. \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. \u0e40\u0e1b\u0e34\u0e14 MQTT Broker<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.\u0e40\u0e1b\u0e34\u0e14 Node-RED<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e1a\u0e23\u0e32\u0e27\u0e4c\u0e40\u0e0b\u0e2d\u0e23\u0e4c 127.0.0.1:1880\/ui \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"468\" src=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-224602.png\" alt=\"\" class=\"wp-image-26759\" srcset=\"https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-224602.png 953w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-224602-300x147.png 300w, https:\/\/dp.rmutsv.ac.th\/wp-content\/uploads\/2024\/10\/\u0e2a\u0e01\u0e23\u0e35\u0e19\u0e0a\u0e47\u0e2d\u0e15-2024-10-17-224602-768x377.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>9.\u0e40\u0e17\u0e04\u0e19\u0e34\u0e04\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e04\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e1b\u0e23\u0e30\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e20\u0e32\u0e1e\u0e21\u0e32\u0e01\u0e02\u0e36\u0e49\u0e19<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e40\u0e2a\u0e16\u0e35\u0e22\u0e23\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d WiFi \u0e41\u0e25\u0e30 MQTT<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e43\u0e0a\u0e49\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e0b\u0e49\u0e33<\/strong>: \u0e1b\u0e23\u0e31\u0e1a\u0e1b\u0e23\u0e38\u0e07\u0e42\u0e04\u0e49\u0e14\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d WiFi \u0e41\u0e25\u0e30 MQTT Broker \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e41\u0e25\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e43\u0e2b\u0e21\u0e48\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e2b\u0e32\u0e01\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2b\u0e25\u0e38\u0e14\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19\u0e01\u0e32\u0e23\u0e2b\u0e22\u0e38\u0e14\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a<\/li>\n\n\n\n<li><strong>\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 Keep-Alive \u0e02\u0e2d\u0e07 MQTT<\/strong>: \u0e25\u0e14\u0e04\u0e48\u0e32 Keep-Alive interval \u0e02\u0e2d\u0e07 MQTT Broker \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d MQTT \u0e21\u0e35\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e1a\u0e48\u0e2d\u0e22\u0e02\u0e36\u0e49\u0e19\u0e41\u0e25\u0e30\u0e25\u0e14\u0e42\u0e2d\u0e01\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e08\u0e30\u0e16\u0e39\u0e01\u0e15\u0e31\u0e14cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>client.setKeepAlive(15); \/\/ \u0e01\u0e33\u0e2b\u0e19\u0e14 Keep-Alive \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e38\u0e01 15 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35<\/code><\/li>\n\n\n\n<li><strong>\u0e43\u0e0a\u0e49 QoS (Quality of Service)<\/strong>: \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e1b\u0e23\u0e30\u0e01\u0e31\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 MQTT \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 QoS \u0e23\u0e30\u0e14\u0e31\u0e1a 1 \u0e2b\u0e23\u0e37\u0e2d 2 \u0e02\u0e36\u0e49\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e01\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e41\u0e19\u0e48\u0e43\u0e08\u0e27\u0e48\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e16\u0e36\u0e07\u0e1b\u0e25\u0e32\u0e22\u0e17\u0e32\u0e07cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>client.publish(topic, payload, true); \/\/ QoS \u0e23\u0e30\u0e14\u0e31\u0e1a 1 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u0e1b\u0e23\u0e31\u0e1a\u0e1b\u0e23\u0e38\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e43\u0e0a\u0e49 Deep Sleep Mode<\/strong>: \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07 \u0e40\u0e0a\u0e48\u0e19 \u0e01\u0e32\u0e23\u0e27\u0e31\u0e14\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2d\u0e31\u0e25\u0e15\u0e23\u0e32\u0e42\u0e0b\u0e19\u0e34\u0e01\u0e43\u0e19\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49 Deep Sleep Mode \u0e02\u0e2d\u0e07 ESP32 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19 \u0e42\u0e14\u0e22\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49\u0e1a\u0e2d\u0e23\u0e4c\u0e14\u0e15\u0e37\u0e48\u0e19\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e27\u0e31\u0e14\u0e04\u0e48\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>esp_sleep_enable_timer_wakeup(10 * 1000000); \/\/ \u0e1b\u0e25\u0e38\u0e01 ESP32 \u0e17\u0e38\u0e01 10 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35 esp_deep_sleep_start();<\/code><\/li>\n\n\n\n<li><strong>\u0e25\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c<\/strong>: \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19\u0e2a\u0e39\u0e07 \u0e40\u0e0a\u0e48\u0e19 \u0e2d\u0e31\u0e25\u0e15\u0e23\u0e32\u0e42\u0e0b\u0e19\u0e34\u0e01 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e27\u0e31\u0e14\u0e1c\u0e25 \u0e41\u0e25\u0e49\u0e27\u0e1b\u0e34\u0e14\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e1b\u0e23\u0e30\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e43\u0e0a\u0e49\u0e01\u0e32\u0e23\u0e04\u0e33\u0e19\u0e27\u0e13\u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e1a\u0e25\u0e47\u0e2d\u0e01 (Non-blocking)<\/strong>: \u0e41\u0e17\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e43\u0e0a\u0e49 <code>delay()<\/code> \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2b\u0e19\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e40\u0e27\u0e25\u0e32\u0e08\u0e32\u0e01 <code>millis()<\/code> \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49 ESP32 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e23\u0e2d\u0e44\u0e14\u0e49cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>if (millis() - previousMillis &gt;= interval) { \/\/ \u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 previousMillis = millis(); }<\/code><\/li>\n\n\n\n<li><strong>\u0e25\u0e14\u0e02\u0e19\u0e32\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e1c\u0e48\u0e32\u0e19 MQTT<\/strong>: \u0e2a\u0e48\u0e07\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 \u0e25\u0e14\u0e08\u0e33\u0e19\u0e27\u0e19\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e2d\u0e2d\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e2b\u0e22\u0e31\u0e14\u0e41\u0e1a\u0e19\u0e14\u0e4c\u0e27\u0e34\u0e14\u0e18\u0e4ccpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>client.publish(topic, String(distanceCm, 1).c_str()); \/\/ \u0e2a\u0e48\u0e07\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21 1 \u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e01\u0e32\u0e23\u0e01\u0e23\u0e2d\u0e07\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c (Sensor Filtering)<\/strong>: \u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2b\u0e25\u0e32\u0e22\u0e04\u0e23\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e04\u0e33\u0e19\u0e27\u0e13\u0e04\u0e48\u0e32\u0e40\u0e09\u0e25\u0e35\u0e48\u0e22\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e40\u0e2a\u0e16\u0e35\u0e22\u0e23\u0e02\u0e36\u0e49\u0e19 \u0e25\u0e14\u0e1c\u0e25\u0e01\u0e23\u0e30\u0e17\u0e1a\u0e08\u0e32\u0e01\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e23\u0e1a\u0e01\u0e27\u0e19cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>float sum = 0; for (int i = 0; i &lt; 5; i++) { sum += distanceCm; delay(50); \/\/ \u0e2b\u0e19\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32\u0e40\u0e25\u0e47\u0e01\u0e19\u0e49\u0e2d\u0e22\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32 } distanceCm = sum \/ 5; \/\/ \u0e04\u0e48\u0e32\u0e40\u0e09\u0e25\u0e35\u0e48\u0e22\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19 5 \u0e04\u0e23\u0e31\u0e49\u0e07<\/code><\/li>\n\n\n\n<li><strong>\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a\u0e02\u0e19\u0e32\u0e19 (Concurrent Data Handling)<\/strong>: \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2b\u0e25\u0e32\u0e22\u0e15\u0e31\u0e27 \u0e40\u0e0a\u0e48\u0e19 Ultrasonic \u0e41\u0e25\u0e30 LDR \u0e43\u0e19\u0e40\u0e27\u0e25\u0e32\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e2d\u0e1c\u0e25\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2d\u0e37\u0e48\u0e19 \u0e0a\u0e48\u0e27\u0e22\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e43\u0e0a\u0e49\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e1c\u0e48\u0e32\u0e19 Web Interface \u0e2b\u0e23\u0e37\u0e2d Mobile App<\/strong>: \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e1c\u0e48\u0e32\u0e19 Web Interface \u0e2b\u0e23\u0e37\u0e2d Mobile App \u0e17\u0e35\u0e48\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a ESP32 \u0e1c\u0e48\u0e32\u0e19 WiFi \u0e43\u0e2b\u0e49\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e40\u0e01\u0e13\u0e11\u0e4c\u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e48\u0e32 LDR \u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07\u0e08\u0e32\u0e01\u0e2d\u0e34\u0e19\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e40\u0e1f\u0e2a\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e07\u0e48\u0e32\u0e22\n<ul class=\"wp-block-list\">\n<li>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e44\u0e25\u0e1a\u0e23\u0e32\u0e23\u0e35 <strong>ESPAsyncWebServer<\/strong> \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2a\u0e23\u0e49\u0e32\u0e07 Web Interface \u0e1a\u0e19 ESP32<\/li>\n\n\n\n<li>\u0e43\u0e0a\u0e49\u0e41\u0e2d\u0e1b\u0e1a\u0e19\u0e21\u0e37\u0e2d\u0e16\u0e37\u0e2d\u0e40\u0e0a\u0e48\u0e19 <strong>Blynk<\/strong> \u0e2b\u0e23\u0e37\u0e2d <strong>ESP8266\/ESP32 Remote Control App<\/strong> \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e37\u0e2d\u0e16\u0e37\u0e2d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 MQTT \u0e14\u0e49\u0e27\u0e22 TLS<\/strong>: \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1c\u0e48\u0e32\u0e19 MQTT \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a TLS \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19\u0e01\u0e32\u0e23\u0e14\u0e31\u0e01\u0e08\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e17\u0e32\u0e07cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>const char* mqtt_broker = \"mqtts:\/\/broker_address\"; \/\/ \u0e43\u0e0a\u0e49\u0e42\u0e1b\u0e23\u0e42\u0e15\u0e04\u0e2d\u0e25 MQTT \u0e1c\u0e48\u0e32\u0e19 TLS<\/code><\/li>\n\n\n\n<li><strong>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e15\u0e31\u0e27\u0e15\u0e19 (Authentication)<\/strong>: \u0e43\u0e0a\u0e49\u0e01\u0e32\u0e23\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e15\u0e31\u0e27\u0e15\u0e19\u0e41\u0e1a\u0e1a\u0e2a\u0e2d\u0e07\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07 MQTT \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15cpp\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e42\u0e04\u0e49\u0e14<code>client.connect(client_id.c_str(), mqtt_username, mqtt_password);<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e41\u0e25\u0e30\u0e1a\u0e33\u0e23\u0e38\u0e07\u0e23\u0e31\u0e01\u0e29\u0e32\u0e23\u0e30\u0e1a\u0e1a<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19 (Alert System)<\/strong>: \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e1c\u0e48\u0e32\u0e19 Email \u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e01\u0e34\u0e14\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e2b\u0e25\u0e38\u0e14 \u0e40\u0e0a\u0e48\u0e19 \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e44\u0e25\u0e1a\u0e23\u0e32\u0e23\u0e35 <strong>IFTTT<\/strong> \u0e2b\u0e23\u0e37\u0e2d <strong>Telegram Bot<\/strong> \u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49<\/li>\n<\/ul>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>10. \u0e2a\u0e23\u0e38\u0e1b\u0e1c\u0e25<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e28\u0e36\u0e01\u0e29\u0e32\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e19\u0e35\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e36\u0e49\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e30\u0e1a\u0e1a\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e30\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d WiFi \u0e41\u0e25\u0e30 MQTT \u0e1a\u0e19\u0e1a\u0e2d\u0e23\u0e4c\u0e14 ESP32 \u0e42\u0e14\u0e22\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e17\u0e31\u0e49\u0e07\u0e42\u0e2b\u0e21\u0e14\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e41\u0e25\u0e30\u0e42\u0e2b\u0e21\u0e14\u0e41\u0e21\u0e19\u0e19\u0e27\u0e25 \u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22 WiFi \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e0a\u0e37\u0e48\u0e2d (SSID) \u0e41\u0e25\u0e30\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e1a\u0e2d\u0e23\u0e4c\u0e14 ESP32 \u0e08\u0e30\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a MQTT Broker \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e42\u0e14\u0e22\u0e08\u0e30\u0e2a\u0e48\u0e07\u0e41\u0e25\u0e30\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1c\u0e48\u0e32\u0e19\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d MQTT \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e27\u0e49 \u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2d\u0e31\u0e25\u0e15\u0e23\u0e32\u0e42\u0e0b\u0e19\u0e34\u0e01 (Ultrasonic Sensor) \u0e08\u0e30\u0e17\u0e33\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e08\u0e32\u0e01\u0e02\u0e32 TrigPin \u0e41\u0e25\u0e30\u0e23\u0e31\u0e1a\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e01\u0e25\u0e31\u0e1a\u0e17\u0e35\u0e48\u0e02\u0e32 EchoPin \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e04\u0e33\u0e19\u0e27\u0e13\u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\u0e08\u0e32\u0e01\u0e40\u0e27\u0e25\u0e32\u0e40\u0e14\u0e34\u0e19\u0e17\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e2a\u0e39\u0e15\u0e23\u0e17\u0e35\u0e48\u0e2d\u0e34\u0e07\u0e15\u0e32\u0e21\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e02\u0e2d\u0e07\u0e40\u0e2a\u0e35\u0e22\u0e07 \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e08\u0e30\u0e16\u0e39\u0e01\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 2 \u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e16\u0e49\u0e32\u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\u0e17\u0e35\u0e48\u0e27\u0e31\u0e14\u0e44\u0e14\u0e49\u0e15\u0e48\u0e33\u0e01\u0e27\u0e48\u0e32\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e27\u0e49 (\u0e40\u0e0a\u0e48\u0e19 10 \u0e0b\u0e21.) \u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 2 \u0e08\u0e30\u0e40\u0e1b\u0e34\u0e14\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e41\u0e25\u0e30\u0e08\u0e30\u0e1b\u0e34\u0e14\u0e15\u0e32\u0e21\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e44\u0e27\u0e49\u00a0 \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e2a\u0e07 (LDR) \u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01\u0e02\u0e32 ldrPin \u0e41\u0e25\u0e30\u0e41\u0e1b\u0e25\u0e07\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e43\u0e2b\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e0a\u0e48\u0e27\u0e07 0-100 \u0e42\u0e14\u0e22\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e15\u0e48\u0e33\u0e01\u0e27\u0e48\u0e32\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 (\u0e40\u0e0a\u0e48\u0e19 \u0e15\u0e48\u0e33\u0e01\u0e27\u0e48\u0e32 50) \u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 1 \u0e40\u0e1b\u0e34\u0e14\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c\u0e19\u0e35\u0e49\u0e08\u0e30\u0e1b\u0e34\u0e14\u0e15\u0e32\u0e21\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e15\u0e31\u0e49\u0e07\u0e44\u0e27\u0e49\u0e25\u0e48\u0e27\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e0a\u0e48\u0e19\u0e01\u0e31\u0e19 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e42\u0e2b\u0e21\u0e14\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21 \u0e23\u0e30\u0e1a\u0e1a\u0e21\u0e35 2 \u0e42\u0e2b\u0e21\u0e14 \u0e04\u0e37\u0e2d \u0e42\u0e2b\u0e21\u0e14\u0e41\u0e21\u0e19\u0e19\u0e27\u0e25 (Manual Mode) \u0e41\u0e25\u0e30 \u0e42\u0e2b\u0e21\u0e14\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 (Auto Mode) \u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e41\u0e21\u0e19\u0e19\u0e27\u0e25 \u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e48\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1c\u0e48\u0e32\u0e19 MQTT \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1b\u0e34\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e1b\u0e34\u0e14\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 1 \u0e41\u0e25\u0e30 2 \u0e14\u0e49\u0e27\u0e22\u0e15\u0e19\u0e40\u0e2d\u0e07 \u0e2a\u0e48\u0e27\u0e19\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c\u0e15\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c 3 \u0e41\u0e25\u0e30 4 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e44\u0e14\u0e49\u0e15\u0e25\u0e2d\u0e14\u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e43\u0e14 \u0e42\u0e14\u0e22\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1c\u0e48\u0e32\u0e19 MQTT \u0e40\u0e1e\u0e35\u0e22\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e14\u0e35\u0e22\u0e27\u00a0 \u0e23\u0e30\u0e1a\u0e1a\u0e19\u0e35\u0e49\u0e22\u0e31\u0e07\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d MQTT \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e40\u0e0a\u0e48\u0e19 \u0e23\u0e30\u0e22\u0e30\u0e17\u0e32\u0e07\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 (Threshold) \u0e04\u0e48\u0e32\u0e41\u0e2a\u0e07\u0e08\u0e32\u0e01 LDR \u0e41\u0e25\u0e30\u0e40\u0e27\u0e25\u0e32\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e35\u0e40\u0e25\u0e22\u0e4c\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21 \u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49\u0e08\u0e32\u0e01\u0e20\u0e32\u0e22\u0e19\u0e2d\u0e01 \u0e40\u0e0a\u0e48\u0e19 \u0e1c\u0e48\u0e32\u0e19 Node-RED \u0e44\u0e14\u0e49 \u0e19\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e19\u0e35\u0e49 \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e40\u0e0b\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e2d\u0e31\u0e25\u0e15\u0e23\u0e32\u0e42\u0e0b\u0e19\u0e34\u0e01\u0e41\u0e25\u0e30 LDR \u0e08\u0e30\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 MQTT Broker \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2b\u0e23\u0e37\u0e2d\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e08\u0e32\u0e01\u0e23\u0e30\u0e22\u0e30\u0e44\u0e01\u0e25<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>9. \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[1] <\/strong><strong>ESP32<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-tech-talk-2-apply wp-block-embed-tech-talk-2-apply\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><blockquote class=\"wp-embedded-content\" data-secret=\"0DIWMYH6pV\"><a href=\"https:\/\/techtalk2apply.com\/what-is-esp32\/\">ESP32 \u0e04\u0e37\u0e2d \u0e2d\u0e30\u0e44\u0e23 \u0e14\u0e35\u0e01\u0e27\u0e48\u0e32 ESP8266 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;ESP32 \u0e04\u0e37\u0e2d \u0e2d\u0e30\u0e44\u0e23 \u0e14\u0e35\u0e01\u0e27\u0e48\u0e32 ESP8266 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23&#8221; &#8212; Tech Talk 2 Apply\" src=\"https:\/\/techtalk2apply.com\/what-is-esp32\/embed\/#?secret=TttgrlvoZz#?secret=0DIWMYH6pV\" data-secret=\"0DIWMYH6pV\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[2] <\/strong><strong>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 <\/strong><strong>ESP32<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.cybertice.com\/article\/226\/%E0%B8%AA%E0%B8%AD%E0%B8%99%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-esp32-%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B9%80%E0%B8%9A%E0%B8%B7%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%95%E0%B9%89%E0%B8%99-esp32?gad_source=1&amp;gclid=EAIaIQobChMI2umz--_4iAMVCBiDAx1krQS2EAAYASAAEgKbbvD_BwE\">https:\/\/www.cybertice.com\/article\/226\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[3] <\/strong><strong>relay<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/misumitechnical.com\/technical\/electrical\/relay-working-principles\">https:\/\/misumitechnical.com\/technical\/electrical\/relay-working-principles<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[4<\/strong><strong>]\u0e01\u0e32\u0e23\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e43\u0e0a\u0e49 node-red<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/medium.com\/mmp-li\/%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-node-red-%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%9B%E0%B8%B5-2018-3fca5ed140f9\">https:\/\/medium.com\/mmp-li\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[6] node-red<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-v-89-infinity-technology wp-block-embed-v-89-infinity-technology\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><blockquote class=\"wp-embedded-content\" data-secret=\"dCVoqhoa2n\"><a href=\"https:\/\/v89infinity.com\/node-red-1\/\">\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01 Node-red \u0e01\u0e31\u0e19\u0e40\u0e16\u0e2d\u0e30<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01 Node-red \u0e01\u0e31\u0e19\u0e40\u0e16\u0e2d\u0e30&#8221; &#8212; V89 Infinity Technology\" src=\"https:\/\/v89infinity.com\/node-red-1\/embed\/#?secret=dCVoqhoa2n\" data-secret=\"dCVoqhoa2n\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[7] mqtt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/aws.amazon.com\/th\/what-is\/mqtt\">https:\/\/aws.amazon.com\/th\/what-is\/mqtt<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[8] <\/strong><strong>\u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07<\/strong><strong> <\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ultrasonic sensor hc-sr04 <a href=\"https:\/\/docs.google.com\/document\/d\/18zTOh1EzQZErX_Utlpe0_BtMqXFMBVTS80jO6rIKhnQ\/preview?hgd=1\">https:\/\/docs.google.com\/document\/d\/18zTOh1EzQZErX_Utlpe0_BtMqXFMBVTS80jO6rIKhnQ\/preview?hgd=1<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[9] <\/strong><strong>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 <\/strong><strong>Grayscale Sensor Module<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.arduitronics.com\/product\/2594\/grayscale-sensor-module-line-finder-sensor-%E0%B9%80%E0%B8%8B%E0%B8%99%E0%B9%80%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B9%81%E0%B8%AA%E0%B8%87-ldr-led\">https:\/\/www.arduitronics.com\/product\/2594\/grayscale-sensor-module-line-finder-sensor<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[10] <\/strong><strong>\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d <\/strong><strong>relay<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.cybertice.com\/article\/108\/%E0%B8%AA%E0%B8%AD%E0%B8%99%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-arduino-%E0%B8%84%E0%B8%A7%E0%B8%9A%E0%B8%84%E0%B8%B8%E0%B8%A1%E0%B9%80%E0%B8%9B%E0%B8%B4%E0%B8%94%E0%B8%9B%E0%B8%B4%E0%B8%94%E0%B9%84%E0%B8%9F%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-relay-module-220vac?gad_source=1&amp;gclid=EAIaIQobChMI64nCmvH4iAMV86lmAh1hNxTlEAAYASAAEgIo-fD_BwE\">https:\/\/www.cybertice.com\/article\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[11]<\/strong><strong>\u0e44\u0e21\u0e42\u0e04\u0e23\u0e04\u0e2d\u0e25\u0e42\u0e17\u0e23\u0e25\u0e40\u0e25\u0e2d\u0e23\u0e4c<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/th.wikipedia.org\/wiki\/%E0%B9%84%E0%B8%A1%E0%B9%82%E0%B8%84%E0%B8%A3%E0%B8%84%E0%B8%AD%E0%B8%99%E0%B9%82%E0%B8%97%E0%B8%A3%E0%B8%A5%E0%B9%80%E0%B8%A5%E0%B8%AD%E0%B8%A3%E0%B9%8C\">https:\/\/th.wikipedia.org\/wiki\/<\/a><\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/strong> Automatic home with Node-RED<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><iframe loading=\"lazy\" title=\"Home automation with node-red\" width=\"620\" height=\"349\" src=\"https:\/\/www.youtube.com\/embed\/7bWqNXf3QJE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1c\u0e39\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21 : 1. \u0e19\u0e32\u0e07\u0e2a\u0e32&#46;&#46;&#46;<\/p>\n","protected":false},"author":449,"featured_media":26774,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,10,1],"tags":[],"class_list":["post-17849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-16","category-10","category-1"],"_links":{"self":[{"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/17849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/users\/449"}],"replies":[{"embeddable":true,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17849"}],"version-history":[{"count":20,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/17849\/revisions"}],"predecessor-version":[{"id":26780,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/17849\/revisions\/26780"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=\/wp\/v2\/media\/26774"}],"wp:attachment":[{"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dp.rmutsv.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}