In this Tutorial I will teach you about the Controlling of temperature In the lab, food storage plant, green house etc.
Some times we need a specific amount of temperature and humidity so we need a device that monitor the temperature and humidity in this project we make a prototype that will monitor temperature and humidity and display it on computer screen and we control the required temperature and humidity. In this system we use an AVR family micro controller(Arduino) interfaced with DTH11 temperature and humidity sensor. So here DTH11 measures both moisture and air temperature.Relative humidity, expressed as a percent, is the ratio of actual moisture in the air to the highest amount of moisture air at that temperature can hold.The warmer the air is, the more moisture it can hold, so relative humidity changes with fluctuations in temperature. And the entire data is show on serial monitor.
So now Be ready to learn How to interface (DHT11) Sensor on Arduino. And for this we need to have some essential information about the components which we will use in this project.
What is DTH11 sensor ?
The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin. Its fairly simple to use.
DTH11 consist humidity and temperature sensor.
- Arduino UNO
- Connecting Wires
- DTH11 Humidity and Temperature Sensor
- DTH library
Firstly we need to include DTH11 library on ardiuno ide now we have to download the library file from this link
And add follow the simple step to include the library
Open arduino ide and click on skatch tab > include library > add Zip library > then choose your file
Now we have to connect dth11 sensor to arduino
This is pin out of dth11
1 is Vcc
2 is data
3 no connection
Connect pin 1 of dth11 to 5v of arduino
Connect pin 2 of dth11 to pin #5 of arduino
And connect pin 4 of dth11 to ground of arduino
Upload the program
#define DHT11_PIN 5
Serial.println("DHT TEST PROGRAM ");
Serial.print("LIBRARY VERSION: ");
Serial.println("Type,\tstatus,\tHumidity (%),\tTemperature (C)");
// READ DATA
int chk = DHT.read11(DHT11_PIN);
Serial.print("Time out error,\t");
Serial.print("Ack Low error,\t");
Serial.print("Ack High error,\t");
// DISPLAY DATA
// END OF FILE
Now you can see the result on serial
So Friends I hope you understand this project . In upcoming Tutorial I will back with some more interesting Projects and will discuss about some useful development topics. And if you want to recommend that what I should write in upcoming Tutorial then please leave your comments. and if u need any help or query please don’t Hesitate to discuss with me. Thank You 🙂