This project uses an Arduino UNO to read real-time temperature and humidity data from a DHT11 sensor and display it on an I2C LCD screen. When powered on, the LCD first shows a welcome message (e.g., "Humidity & Temp Monitor") and then continuously updates with the current temperature (in °C) and humidity (in %). This system is ideal for basic environmental monitoring applications in homes, greenhouses, or small offices.
🛠Parts Used:
- Arduino UNO – Microcontroller board to process data.
- DHT11 Temperature and Humidity Sensor – Measures the ambient temperature and humidity.
- I2C LCD Display (16x2) – Displays messages and sensor readings.
- Breadboard – For prototyping and connecting components.
- Connecting Wires – For making electrical connections.
- Power Supply/USB Cable – To power the Arduino UNO.
DHT11 Sensor:
- VCC → Arduino 5V
- GND → Arduino GND
- Data Pin → Arduino digital pin (e.g., D7)
(If needed, use a 10kΩ resistor between VCC and the data pin for proper operation)
I2C LCD Display:
- SDA → Arduino A4
- SCL → Arduino A5
- VCC → Arduino 5V
- GND → Arduino GND
Arduino UNO:
- Powered via USB or external 5V supply.
Connections / Circuit Diagram
Wiring Details:
Circuit Diagram
Video Link: - Click Here For Video
How To Make Temperature and Humidity monitoring Device Using Arduino UNO DIY Project by WTC Zone simple Circuit: -
Arduino IDE Program
Code for Temperature and Humidity monitoring Device Using Arduino UNO DIY Project by WTC Zone
/
#include <Wire.h>#include <LiquidCrystal_I2C.h>#include "DHT.h"
// Define DHT11 sensor parameters#define DHTPIN 7 // DHT11 data pin connected to Arduino D7#define DHTTYPE DHT11 // DHT11 sensor typeDHT dht(DHTPIN, DHTTYPE);
// Initialize I2C LCD: set address to 0x27 and 16 columns, 2 rowsLiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() { // Initialize serial communication for debugging (optional) Serial.begin(9600);
// Initialize the DHT11 sensor dht.begin();
// Initialize the LCD lcd.init(); lcd.backlight();
// Display welcome message lcd.setCursor(0, 0); lcd.print("Humidity & Temp"); lcd.setCursor(0, 1); lcd.print(" Monitor"); delay(3000); lcd.clear();}
void loop() { // Reading temperature and humidity from DHT11 sensor float humidity = dht.readHumidity(); float temperature = dht.readTemperature(); // Celsius
// Check if any reads failed; if so, display error message if (isnan(humidity) || isnan(temperature)) { lcd.setCursor(0, 0); lcd.print("Sensor Error "); Serial.println("Failed to read from DHT sensor!"); } else { // Print data to the LCD display lcd.setCursor(0, 1); lcd.print("Temp: "); lcd.print(temperature, 1); lcd.print(" C "); lcd.setCursor(0, 0); lcd.print("Humidiy: "); lcd.print(humidity, 1); lcd.print(" % "); // Optional: print to Serial Monitor for debugging Serial.print("Temp: "); Serial.print(temperature); Serial.print(" °C\tHumidity: "); Serial.print(humidity); Serial.println(" %"); } // Update the display every 2 seconds delay(500);}
Share, Support, and Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #wtc #Arduino #ideas #projects #diy #how #to #ArduinoProjects #UltrasonicSensor #HeightMeasurement #TechDIY #WeTechCreators #wtczo
0 Comments