Interfacing Humidity and Temperature (DHT11) Sensor to Arduino

DTH11 includes both Humidity and Temperature sensor.

Hardware Components required:-
1) DTH11 Humidity and Temperature Sensor
2) Arduino UNO
3)Connecting Wires
4) DTH library
You can get the sensor DTH11 Data Sheet from the below link

Hardware Connections

DTH11 To Arduino
Vcc --- 5v
Data Pin --- 3rd Pin of Arduino

Step 1: How to Include DHT Library

Picture of How to Include DHT Library






Please download the DHT library from the below link.
Go to Sketch--> Include Library --> Add Zip File
As shown in the above screen shot please browse the ZIP file and include the library after including the library.
Close the Arduino IDE and open it again then you will find the library included.




 Step 2: Program and Results


Picture of Program and Results





dht DHT;
// if you require to change the pin number, Edit the pin with your arduino pin.
#define DHT11_PIN 3
void setup() {
Serial.println("welcome to TechPonder Humidity and temperature Detector"); }
void loop() { // READ DATA
int chk = DHT.read11(DHT11_PIN);
Serial.println(" Humidity " );
Serial.println(DHT.humidity, 1);
Serial.println(" Temparature ");
Serial.println(DHT.temperature, 1);


Popular posts from this blog

Third Eye using Arduino

DIY Arduino & Bluetooth Controlled Robotic Arm

Build a Cloud-Connected ESP8266 Power Meter