Using the SHT21 digital temperature and humidity sensor, I put together this tutorial showing how to use the sensor with ESP8266 (same code would work on Arduino).
I'm also using an LCD touch screen to display the temperature and humidity graphically, and showing how to use touch screen buttons to switch between degrees C and F.
The touch screen shield uses Arduino Uno and since it uses up most of the Uno pins, I'm using the SHT21 on NodeMCU, then communicating the data over UART to the Uno. In the future I will adapt the ESP8266 sketch to make sensor data available with WiFi.
Uno Sketch and Schematic:
github.com/GadgetReboot/Ardui...
ESP8266 Sketch:
github.com/GadgetReboot/Ardui...
Previous touch screen thermometer video with more detail about parts of this sketch:
• DS18B20 Digital Thermo...
SHT21 Library:
github.com/markbeee/SHT21
SHT21 Datasheet:
www.sensirion.com/fileadmin/u...
Analog meter sketch reference:
github.com/Bodmer/TFT_eSPI/bl...
Another project that shows how to use the analog humidity meter graphic:
thesolaruniverse.wordpress.co...
Patreon: / gadgetreboot
Pinterest: www.pinterest.ca/GadgetReboot
Twitter: @GadgetReboot / gadgetreboot
27 янв 2019