Arduino – DHT11 Sensor

Intro: Arduino – DHT11 Sensor

Hi Guys,

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.

Description:

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.

DHT11 Specifications:

· 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

Pinout:

· VCC (3 to 5V power)

· Data out

· NC

· GND

Parts Required:

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.

Step 3: ​Demonstration:

You should see the humidity and temperature on the serial monitor once the sketch has been successfully uploaded to Arduino.

Thanks for reading,

2 People Made This Project!

Recommendations

  • Audio Contest 2018

    Audio Contest 2018
  • Metalworking Contest

    Metalworking Contest
  • Tiny Home Contest

    Tiny Home Contest

6 Discussions

0
None
sathwik2000

1 year ago

i am not getting some error in compiling

WhatsApp Image 2017-09-12 at 6.58.54 PM.jpeg
0
None
theoriginalrage

2 years ago

I made this one. It was pretty straightforward. Great job.

0
None
Avishek HardinBatimeh

Reply 2 years ago

Hello Batimeh, thanks for your time to read my Instructable, am also learning Arduino. My current reference is www.arduino.cc where you can easily start. Huge number of apprentices
videos available on youtube, please check out Jeremy Blum Arduino Tutorial, worth it link below.