Define Ubidots MQTT, AIO key Define ESP8266, GPIO (FOR ACTUATORS AND SENSORS)
DRK ←value of darkness TMP ←value of temperature HMDT ←value of humidity GAS ←value of gas MTN ←value of motion RN ←value of rain
Sensors optimum values are set: DRK_0, TMP_0, HMDT_0, GAS_0, MTN_0, RN_0 Initialize by switch on. ESP8266 is connected. The Internet access point is activated. MQTT server is connected ESP8266 get data from sensors |