Temperature and Humidity Monitoring System using DHT11 Sensor in proteus

Temperature and Humidity Monitoring System using DHT11 Sensor in proteus

In this article we will learn how to monitor temperature and humidity system using DHT11 sensor in proteus.
In the last post we will learn how to interfacing arduino with stepper motor and LCD in proteus. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

Diagram of this project:

Temperature and Humidity Monitoring System using DHT11 Sensor in proteus
Temperature and Humidity Monitoring System using DHT11 Sensor in proteus

Components which we use in this project:

  1. Arduino UNO
  2. LCD display
  3. Temperature sensor
  4. Resistor 1k
  5. Transistor 547
  6. Diod 4007
  7. 5V relay
  8. 220V supply
  9. 220V lamp
  10. Jumper wire’s

Construction of Temperature and Humidity Monitoring System using DHT11 Sensor in proteus

  • Connect GND point of temperature sensor to GND
  • Connect DATA point of temperature sensor to the point 2 of arduino
  • Connect VDD point of temperature sensor to +ve
  • Connect the point 3 of arduino to D7 point of LCD
  • Connect the point 4 of arduino to D6 point of LCD
  • Connect the point 5 of arduino to D5 point of LCD
  • Connect the point 6 of arduino to D4 point of LCD
  • Connect the point 8 of arduino to 1K resistor
  • Connect the E point of LCD to the point 11 of arduino
  • Connect the RS point of LCD to the point 12 of arduino
  • Connect VSS and RW both point’s of LCD to GND
  • Connect VEE point of LCD to +ve
  • Connect the other side of resistor 1K to the base point of transistor
  • Connect the collector point of transistor to the diod 4007
  • Connect the ammeter point of transistor to GND
  • Connect the other side of diod 4007 to +Ve
  • Connect the one terminal of 5V relay to 220V supply
  • Connect the other side of 220V supply to the 220V lamp
  • Connect the other side of 220V lamp to the second terminal of 5V relay
  • At the end dress up all the wire’s clean and tidy

Working of Temperature and Humidity Monitoring System using DHT11 Sensor in proteus

A temperature and humidity monitoring system using DHT11 sensor is a basic yet effective way to measure and track environmental conditions. The DHT11 sensor is a low-cost digital sensor that can accurately measure temperature and humidity.

Applications of temperature and Humidity Monitoring System using DHT11 Sensor.

  1. Home automation
  2. Greenhouses and agriculture
  3. Food storage
  4. Pharmaceutical storage
  5. Industrial processes
  6. Weather stations

Advantages of temperature and Humidity Monitoring System using DHT11 Sensor.

  1. Cost-effective
  2. Easy to use
  3. Compact size
  4. Low power consumption
  5. Real-time monitoring

program coding 

// include the library code:
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 6, d5 = 5, d6 = 4, d7 = 3;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

#include “DHT.h”

#define DHTPIN 2 // what digital pin we’re connected to

// Uncomment whatever type you’re using!
#define DHTTYPE DHT11 // DHT 11

// Connect pin 1 (on the left) of the sensor to +5V
// NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1
// to 3.3V instead of 5V!
// Connect pin 2 of the sensor to whatever your DHTPIN is
// Connect pin 4 (on the right) of the sensor to GROUND
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor

// Initialize DHT sensor.
// Note that older versions of this library took an optional third parameter to
// tweak the timings for faster processors. This parameter is no longer needed
// as the current DHT reading algorithm adjusts itself to work on faster procs.
DHT dht(DHTPIN, DHTTYPE);

void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
Serial.println(“DHTxx test!”);
pinMode(8, OUTPUT);

dht.begin();
}

void loop() {
// Wait a few seconds between measurements.
delay(2000);

// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds ‘old’ (its a very slow sensor)
float h = dht.readHumidity();
// Read temperature as Celsius (the default)
float t = dht.readTemperature();
// Read temperature as Fahrenheit (isFahrenheit = true)
float f = dht.readTemperature(true);

// Check if any reads failed and exit early (to try again).
if (isnan(h) || isnan(t) || isnan(f)) {
Serial.println(“Failed to read from DHT sensor!”);
return;
}

// Compute heat index in Fahrenheit (the default)
float hif = dht.computeHeatIndex(f, h);
// Compute heat index in Celsius (isFahreheit = false)
float hic = dht.computeHeatIndex(t, h, false);

//Serial.println(“success”);
Serial.print(“Humidity: “);
Serial.print(h);
Serial.print(” %\t”);
Serial.print(“Temperature: “);
Serial.print(t);
Serial.print(” *C “);
Serial.print(f);
Serial.print(” *F\t”);
Serial.print(“Heat index:”);
Serial.print(hic);
Serial.print(” *C “);
Serial.print(hif);
Serial.println(“*F”);

if (h > 79)

{
digitalWrite(8,HIGH);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“Humidity”);
lcd.setCursor(0, 1);
lcd.print(“HIGH’ON’:”);
lcd.setCursor(10, 1);
lcd.print(h);
delay(500);
}
else
{
digitalWrite(8,LOW);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“Humidity”);
lcd.setCursor(0, 1);
lcd.print(“Less’OFF’:”);
lcd.setCursor(10, 1);
lcd.print(h);
delay(500);

}
}