Description
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 (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.
Features:
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
Good for 20-80% humidity readings with 5% accuracy
Good for 0-50°C temperature readings ±2°C accuracy
No more than 1 Hz sampling rate (once every second)
Getting started Digital Temperature and Humidity Sensor
Connections are simple, the first pin on the left to 3-5V power, the second pin to your data input pin and the right most pin to ground.
Technical details:
|
Step1: Hardware required
For this tutorial you will need:
Step2: Connecting the hardware
The Circuit
The connections are pretty easy, see the image above with breadboard circuit schematic.
Step3: Making the code and Upload it!
open the sample sketch that is located in file>examples>DHT sensor library>DHTtester. and upload it. as shown below
open the serial monitor: