Arduino – DHT11 SensorStoreAdmin
Arduino – DHT11 Sensor
Introduction: Arduino – DHT11 Sensor
This is my first Arduino tutorial, even though I know there’s huge number of Arduino articles and apprentices videos easy available online, I decided to make my own, to help anyone of us start with basic of Arduino and Electronics.
This tutorial covers the basic low cost DHT11 [Humidity and Temperature sensors inbuilt] and also very common sensor for Arduino projects. The chip inside the DHT11 perform all the heavy task and only output a digital signal with humidity and temperature, compatible with any MCUs, ideal for those who want some basic data logging stuffs, Home Automation and more.
· 3 to 5V power
· Max. 2.5mA during conversion
· Humidity range 20-80% with 5% accuracy
· Temperature range 0-50°C with ±2°C accuracy
· VCC (3 to 5V power)
· Data out
You will need the following to make the circuit.
· 1 x Arduino Uno
· 1 x DHT11
· 1 x 10KΩ Resistor
· Jumper Wires
Step 1: Schematic:
Here’s how to connect the DHT11 to Arduino.
Step 2: Source Code:
Here’s the codes for this project.
1. Download the DHT Library from Adafruit repository.
2. Unzip the DHT library and rename the extracted folder to DHT.
3. Copy this folder to the following path to install the DHT library.
C:\Program Files (x86)\Arduino\libraries
4. Upload below code.
You should see the humidity and temperature on the serial monitor once the sketch has been successfully uploaded to Arduino.