A simple Arduino-based device that measures temperature and humidity using a DHT11 sensor and displays the data on a Nokia 5110 or 16x2 LCD, as well as in the Serial Monitor.
- Measures temperature and humidity using a DHT11 sensor
- Displays data on a Nokia 5110 or 16x2 LCD, and in the Serial Monitor
- Adjustable contrast when using the 16x2 LCD (set via the
Contrastvariable)
- Arduino Uno
- DHT 11 Humidity & Temperature Sensor Module
- Nokia 5110 LCD or 16x2 LCD Module
- Wires
- Install required libraries (Adafruit Unified Sensor, DHT sensor library).
- Connect your hardware components as shown in the schematic.
- Upload the code to your microcontroller:
- If you use Arduino IDE, open the appropriate
.inofile for your LCD type (temp_hum_device_16x2_lcd.inoortemp_hum_device_nokia_5110_lcd.ino) and upload it directly. - If you use VS Code with PlatformIO or another editor, use the single main code file (
main.cpp), which contains code for both LCD types. By default, the Nokia 5110 code is commented out. Uncomment the section for your LCD and comment out the other before uploading.
- If you use Arduino IDE, open the appropriate
- Watch the temperature and humidity data update on the screen and in the Serial Monitor.



