Temperature Check using DHT11

 

Temperature Check using DHT11


Just  Arduino Things | TW TechieTube

Measure your room temperature and humidity easily.



Principle:

The electrical resistivity ratio between the electrodes where a substrate is placed in between them, It absorbs moisture from the atmosphere and the conductivity in it is represented as humidity and temperature

Components Required:-

  • Arduino UNO                    (1)
  • DHT 11 Temp. sensor        (1)
  •  Breadboard                     (1)
  • Jumper Cables                  (as per requirement)
  • Arduino Bus Cable - ABC    (1)


Construction:-

A very simple project to check the atmospheric temperature using the DHT11 Sensor.


Now Connect the Sensor pins with the order given,

Vcc    - Arduino 5v/3.3v pin
Gnd   - Arduino Gnd Pin
DATA - Arduino Digital Pins  (We have given Digital output to print in               output)

As explained in the Video, the Code is written as follows,

Code:

#include <dht.h>
dht DHT;
#define DHT11_PIN 2

void setup()
{    Serial.begin(9600);
}

void loop()
{
int d = DHT.read11(DHT11_PIN);
Serial.print("Temperature = ");
Serial.println(DHT.temperature);
Serial.print("Humidity = ");
Serial.println(DHT.humidity);
delay(1000);
}

Do make the project, Take a snap and Tag us at Instagram with the Image of your project - @techwiz_india

Comments

Popular posts from this blog

Buzzer Alarm using Touch Sensor

Obstacle Detection using IR Sensor

Human Detection using PIR Sensor