Ad Code

Responsive Advertisement

Ticker

6/recent/ticker-posts

How To Make Temperature and Humidity monitoring Device Using DHT11 DIY Project by WTC Zone

 

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:

  1. Arduino UNO – Microcontroller board to process data.
  2. DHT11 Temperature and Humidity Sensor – Measures the ambient temperature and humidity.
  3. I2C LCD Display (16x2) – Displays messages and sensor readings.
  4. Breadboard – For prototyping and connecting components.
  5. Connecting Wires – For making electrical connections.
  6. Power Supply/USB Cable – To power the Arduino UNO.

  7. Connections / Circuit Diagram

    Wiring Details:

    1. 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)
    2. I2C LCD Display:

      • SDA → Arduino A4
      • SCL → Arduino A5
      • VCC → Arduino 5V
      • GND → Arduino GND
    3. Arduino UNO:

      • Powered via USB or external 5V supply.


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: -




How To Make Temperature and Humidity monitoring Device Using Arduino UNO DIY Project by WTC Zone Arduino Programming: -

Arduino IDE Program

Code for Temperature and Humidity monitoring Device Using Arduino UNO DIY Project by WTC Zone

Below is the complete Arduino code for this project. Make sure you have the DHT sensor library and the LiquidCrystal_I2C library installed in your Arduino IDE.

/
#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 type
DHT dht(DHTPIN, DHTTYPE);

// Initialize I2C LCD: set address to 0x27 and 16 columns, 2 rows
LiquidCrystal_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);
}
------------------------------------------------------------------------------------------------------------------

  1. Working Principle

    1. Sensor Data Acquisition:
      The DHT11 sensor measures the ambient temperature and humidity and sends digital data to the Arduino via its data pin.

    2. Data Processing:
      The Arduino reads the sensor data using a DHT library and then processes it to obtain temperature (in °C) and humidity (%).

    3. Display:
      The Arduino sends the processed data to the I2C LCD display via I2C communication. The LCD first displays an initial message, then updates every few seconds with real-time temperature and humidity readings.


Tips & Tricks

  • Library Installation:
    Ensure you have installed the DHT sensor library by Adafruit and the LiquidCrystal_I2C library using the Arduino Library Manager.

  • Calibration:
    DHT11 is a basic sensor. For more accurate readings, consider upgrading to a DHT22 sensor if needed.

  • Power Considerations:
    Use a stable power source. If deploying for long-term monitoring, consider powering the Arduino with a regulated power supply or battery with proper voltage regulation.

  • Enclosure:
    Build an enclosure for your device to protect it from dust and accidental damage, especially if used in a greenhouse or outdoor setting.

  • Data Logging:
    For further modification, consider integrating an SD card module or sending data to a cloud service via Wi-Fi (using an ESP8266 or ESP32) to log sensor readings over time.

  • Display Enhancements:
    Upgrade to a color TFT display for more interactive interfaces or graphical representations of the data.


This project is an excellent starting point for environmental monitoring. As you become more comfortable with the basics, consider expanding the project to include additional sensors (like air quality sensors) or remote monitoring capabilities. Enjoy your build!


Let me know if you need further help with the implementation or enhancements! 😊


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

Post a Comment

0 Comments

Ad Code

Responsive Advertisement