Tutorial How to Use DHT11 Humidity Sensor

Introduction: Tutorial How to Use DHT11 Humidity Sensor


DHT11 Temperature & Humidity Sensor features a temperature & humidity sensor complex with a calibrated digital signal output. By using the exclusive digital-signal-acquisition technique and temperature & humidity sensing technology, it ensures high reliability and excellent long-term stability.

This sensor includes a resistive-type humidity measurement component and an NTC temperature measurement component, and connects to a highperformance 8-bit microcontroller, offering excellent quality, fast response, anti-interference ability and cost-effectiveness


Measurement Range: 20-90% RH, 0 - 50℃

Humidity Accuracy: ±5% RH

Temperature Accuracy: ± 2℃

Resolution: 1

Package: 3 pin single row

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Material Preparation

For this tutorial, the items needed to run this project are:

  1. Arduino Uno
  2. Breadboard
  3. Male to male jumper
  4. DHT11 Humidity Sensor

Step 2: Hardware Installation

The hardware configuration is stated as below:

  • +pin on the DHT11 Humidity sensor -> 5V port of Arduino UNO
  • -pin on the DHT11 Humidity sensor -> Ground port of Arduino UNO
  • out pin on the DHT11 Humidity sensor -> A0

Step 3: Source Code

  1. Download the test code and open it by using Arduino software or IDE.
  2. Make sure that you have choose the right board and the corresponding port. (In this tutorial, Arduino Uno is used)
  3. Then, upload the test code into your Arduino Uno.

Step 4: Result

After compile the code and upload to the Arduino UNO, open your serial monitor and examine the humidity and temperature of your surrounding from now on. Have Fun!

Be the First to Share


    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest



    9 months ago

    I have another information about DHT11:
    l; font-weight: normal; letter-spacingRelative humidity
    Resolution: 16Bit
    Repeatability: ± 1% RH
    Accuracy: At 25℃ ± 5% RH
    Interchangeability: fully interchangeable
    Response time: 1 / e (63%) of 25℃ 6s
    1m / s air 6s
    Hysteresis: <± 0.3% RH
    Long-term stability: <± 0.5% RH / yr in

    Resolution: 16Bit
    Repeatability: ± 0.2℃
    Range: At 25℃ ± 2℃
    Response time: 1 / e (63%) 10S

    3rd byte isn't zero, so I got next output with other code at my Raspberry Pi:

    So it will be nice if you can recheck your results with your Arduino.