ABOUT THE SENSOR:
The DHT11 humidity and temperature sensor make it really easy to add humidity and temperature data to your DIY electronics projects. It’s perfect for remote weather stations, home environmental control systems, and farm or garden monitoring systems.
The DHT11 measures relative humidity. Relative humidity is the amount of water vapor in air vs. the saturation point of water vapor in the air. At the saturation point, water vapor starts to condense and accumulate on surfaces forming dew.
The saturation point changes with air temperature. Cold air can hold less water vapor before it becomes saturated, and hot air can hold more water vapor before it becomes saturated.
HOW TO SETUP:
Before you can use the DHT11 on the Arduino, you’ll need to install the DHT lib library. It has all the functions needed to get the humidity and temperature readings from the sensor. It’s easy to install, just download the DHTLib.zip file below and open up the Arduino IDE.
Then go to Sketch>Include Library>Add.ZIP Library and select the DHTLib.zip file.
#define DHT11_PIN 7
int chk = DHT.read11(DHT11_PIN);
Serial.print("Temperature = ");
Serial.print("Humidity = ");