loading

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

http://www.micro4you.com/files/sensor/DHT11.pdf

Hardware Connections

DTH11 To Arduino

Vcc --- 5v

GND --- GND

Data Pin --- 3rd Pin of Arduino

Step 1: How to Include DHT Library

Please download the DHT library from the below link.

https://drive.google.com/file/d/0B1paTI5fzcHodno5azFOSVVDT0E/view?usp=sharing

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

Program

#include<dht.h>
dht DHT;

// if you require to change the pin number, Edit the pin with your arduino pin.

#define DHT11_PIN 3

void setup() {

Serial.begin(9600);

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);

delay(2000);

}

Results are shown in above screen shots..

Thanks,

TechPonder.

<p>hi</p><p>i have a issue while running the program its giving me a error saying</p><p>board at com1 is not avaliable...</p>
In Arduino IDE. Go to Tools-&gt; Port Select the COM port on which your Arduino is connected to the System. In order to check the COM port in Computer go to Control Panel-&gt;Hardware-&gt; Device Manger-&gt; Ports You will find the Exact COM Port. Please select the port and upload.
Hi,<br><br>I Have issues with the Arduino recognizing the file dht.h. Was told no such file exist, meanwhile I have uploaded the zip file into the Arduino IDE, which showed in the file directory.<br><br>How do I solve this?
<p>Thanks for this. Built mine using a Duinotech XC-4432 sensor module from Jaycar. Downloaded the library - like the instructions, nice and easy to follow. Started it up, monitored the serial output. Got values of 1.0 and 1.0 for humidity and temp. Hhhmmm. Read you library, realised that read11 really is a 1 or 0 collection for humidity and temp (at least with the Duinotech module it is). Tried read22. Worked a charm.</p>
<p>works perfect, thank you , I have also got ESP8266 Wifi module, can you show me how can I broadcast from my arduino uno to raspberry pi which has another DHT11 hooked into monitoring room temperature.</p>
<p>It is a project easy to make and very fun!!!</p>

About This Instructable

42,033views

44favorites

License:

More by TechPonder:how to interface LCD (16X2) to arduino How to Interface Ultrasonic Sensor (HCSR04) to arduino uno Fire  detection  using Arduino and flame sensor 
Add instructable to: