Meter temperature and humidity on ESP8266 and DHT22 based for ESP8266 ESP-12 Full Evaluation Board. Publish data to MQTT broker. Work on NodeMCU 0.9.6
NodeMCU IO index | ESP-12 GPIO | Connection |
---|---|---|
0 | GPI16 | Connect to REST pin for node.dsleep() |
1 | GPIO4 | DHT22 |
5 | GPIO14 | Input for setup mode |
6 | GPIO12 | RGB 4-pin LED wifi indicator, green |
7 | GPIO13 | RGB 4-pin LED wifi indicator, blue |
8 | GPIO15 | RGB 4-pin LED wifi indicator, red |