How to use the DHT11 Temperature and Humidity Sensor with an Arduino!
In this tutorial we will learn how to use a DHT (DHT11 version) Temperature and Humidity Sensor.
It’s accurate enough for most projects that need to keep track of humidity and temperature readings.
Again we will be using a Library specifically designed for these sensors that will make our code short and easy to write.
As you can see we only need 3 connections to the sensor, since one of the pin is not used.
The connection are : Voltage, Ground and Signal which can be connected to any Analog Pin on our UNO.
Since we will be using a Library that is available for this sensor, our code will be very short and simple.
Once you have the library, just go ahead and extract it to the Library folder inside your Arduino IDE software folder.
For the Arduino code, just copy and paste the code above in your Arduino IDE software.
You can download the DHT Library we used here: DHT-Library