esp8266D1 Realize thermometer
The temperature and humidity of the library and code are the same as that of uno, except for the connection of signal lines
It can be seen that the connections of signal lines are all changed.
The signal line of screen connection 8266 becomes。SDA—D14/SDA；SCL—D15/SCL
The signal line of the temperature and humidity sensor connected to 8266 changes to。TX1/D8
The code is as follows。SNAR2-温度计download
This is using UNO. The library and code can be downloaded from here教程SNAR2 arduino 温度计 DHT11+LCD1206