Introduction: DHT11 Temperature and Humidity Sensor Using Arduino With LCD Display Tutorial

this is a simple project

You can understand the basics of the LCD with I2C and also how to find temperature and humidity of the room.

hope you all have enjoyed the video please click on subscribe and press the click on the notification button

Step 1: Components Needed

The things i have used in this project is

Arduino uno

DHT11 sensor

LCD with I2C module

Jumperwires

Breadboard

Step 2: Circuit Diagram

Step 3: Arduino CODE

#include #include #include // for DHT11, // VCC: 5V or 3V // GND: GND // DATA: 3 int pinDHT11 = 3; SimpleDHT11 dht11(pinDHT11); LiquidCrystal_I2C lcd(0x27, 16, 2); void setup() { Serial.begin(115200); } void loop() { // start working... Serial.println("================================="); Serial.println("Sample DHT11..."); // read without samples. byte temperature = 0; byte humidity = 0; int err = SimpleDHTErrSuccess; if ((err = dht11.read(&temperature, &humidity, NULL)) != SimpleDHTErrSuccess) { Serial.print("Read DHT11 failed, err="); Serial.println(err);delay(1000); return; } lcd.begin(); // Turn on the blacklight and print a message. lcd.backlight(); lcd.print("tempature "); lcd.print((int)temperature); lcd.setCursor(0, 1); lcd.print("humidity "); lcd.print((int)humidity); delay(1000); }

Step 4: NOTE

YOU SHOULD DOWNLOAD SIMPLEDHT LIBRARY TO GET THE PROJECT WORK CORRECTLY