Phone

    00852-6915 1330

Arduino DHT11 Temperature and Humidity Sensor: Pinout, Equivalents, and DHT11 vs DHT22

  • Contents

Overview of DHT11

Video related to DHT11

DHT11 Pinout

DHT11 Pinout Description

DHT11 Dimensions

ESP32 with DHT11

ESP8266 with DHT11

DHT11 Specifications

DHT11 Equivalents

What are the Differences: DHT11 vs DHT22

DHT11 vs DHT22 Specifications

Conclusion of DHT11 vs DHT22

DHT11 and DHT22 Applications

Differences between DHT11 Sensor and Module

DHT11 Sensor Connection to an Arduino

Applications for DHT11 Sensors

How to use DHT11 Sensor

DHT11 Datasheet

DHT11 FAQ

 

Overview of DHT11

A temperature and humidity sensor complex with a calibrated digital signal output is part of the DHT11 Temperature & Humidity Sensor. It guarantees high dependability and outstanding long-term stability by utilizing the unique digital-signal-acquisition technique and temperature & humidity sensing technology. This sensor connects to a high performance 8-bit microcontroller and combines a resistive-type humidity measurement component with an NTC temperature measurement component to provide great quality, quick response, interference resistance, and cost effectiveness.

DHT11

Each DHT11 component is meticulously calibrated in a humidity calibration lab that is exceptionally accurate. The calibration coefficients are used by the sensor's internal signal detecting process and are stored as programs in the OTP memory. System integration is quick and simple thanks to the single-wire serial interface. It is the finest option for a variety of applications, including those that are the most demanding, because to its small size, low power consumption, and up to 20 meter signal transmission. The component is packaged with a single row of four pins. The ability to connect is simple, and users can request certain packages.

 

 

DHT11 Pinout

DHT11 Pinout

 

DHT11 Pinout Description

No: Pin Name Description
For DHT11 Sensor    
1 Vcc Power supply 3.5V to 5.5V
2 Data Outputs both Temperature and Humidity through serial Data
3 NC No Connection and hence not used
4 Ground Connected to the ground of the circuit
For DHT11 Sensor module    
1 Vcc Power supply 3.5V to 5.5V
2 Data Outputs both Temperature and Humidity through serial Data
3 Ground Connected to the ground of the circuit

 

DHT11 Dimensions

DHT11 Dimensions

 

ESP32 with DHT11

ESP32 with DHT11

 

ESP8266 with DHT11

ESP8266 with DHT11

 

DHT11 Specifications

  • Operating Voltage: 3.5V to 5.5V
  • Operating current: 0.3mA (measuring) 60uA (standby)
  • Output: Serial data
  • Temperature Range: 0°C to 50°C
  • Humidity Range: 20% to 90%
  • Resolution: Temperature and Humidity both are 16-bit
  • Accuracy: ±1°C and ±1%

 

DHT11 Equivalents

DHT22

AM2302

SHT71

 

What are the Differences: DHT11 vs DHT22

  • Temperature range: With respect to the temperature range, for DHT11, it falls within -20 – 60℃, while for DHT22, it falls within -40 – 80℃.
  • Temperature accuracy: DHT11 has a temperature accuracy of ±2%, while that of DHT22 is ±0.5℃
  • Humidity Range: the humidity range for DHT11 falls between 5 – 95% RH, while that of DHT22 falls within 0 – 100%RH.
  • Humidity Accuracy: DHT11 has a humidity accuracy of ±5%, in contrast to DHT22, which is ±2%.
  • Cost: The cost of DHT11 is $5.90 compared to that of DHT22, which is $9.90.

 

DHT11 vs DHT22 Specifications

  DHT11 DHT22
Operating Voltage 3 to 5V 3 to 5V
Max Operating Current 2.5mA max 2.5mA max
Humidity Range 20-80% / 5% 0-100% / 2-5%
Temperature Range 0-50°C / ± 2°C -40 to 80°C / ± 0.5°C
Sampling Rate 1 Hz (reading every second) 0.5 Hz (reading every 2 seconds)
Body size 15.5mm x 12mm x 5.5mm 15.1mm x 25mm x 7.7mm
Advantage Ultra low cost More Accurate

 

Conclusion of DHT11 vs DHT22

Although the DHT22 is more accurate, precise, and capable of operating in a wider range of temperatures and humidity, the DHT11 outperforms the DHT22 in three key areas. It has a greater sample rate, is less costly, and is smaller in size. The DHT11 has a sampling rate of 1Hz, or one reading every second, whereas the DHT22 has a sampling rate of 0.5Hz, or one reading every two seconds.

DHT11 VS DHT22

However, the maximum current consumed during conversion (when requesting data) is 2.5mA, whereas the operational voltage of both sensors ranges from 3 to 5 volts. The nice part is that DHT11 and DHT22 sensors can be "swapped"; that is, if you create your project using one, you can simply unplug it and use another.

 

DHT11 and DHT22 Applications

  • Measure temperature and humidity
  • Local Weather station
  • Automatic climate control
  • Environment monitoring

 

Differences between DHT11 Sensor and Module

You can buy the DHT11 sensor as a sensor or as a module. In either case, the sensor's performance is unchanged. The module will have three pins as shown above, whereas the sensor will come in a 4-pin package of which only three pins will be used.

The main distinction between the sensor and module is that the module will come with an internal pull-up resistor and filtering capacitor, whereas the sensor requires you to utilize them externally if necessary.

 

DHT11 Sensor Connection to an Arduino

It is simple to connect DHT sensors to Arduino. They may be simply connected into any breadboard because to their relatively lengthy 0.1′′-pitch pins. Connect the GND pin to the ground and the VCC pin to the Arduino's 5V supply. The Data pin should then be connected to digital pin #8.

Wiring DHT11 to Arduino UNO

You must additionally add a 10K pull-up resistor between the Data line and VCC to ensure effective connection between the sensor and MCU (to keep the signal HIGH). There is already a pull-up resistor on the breakout board for the sensor, so you do not need to add another one.

 

Applications for DHT11 Sensors

A typical temperature and humidity sensor is the DHT11. The sensor includes a dedicated NTC for temperature measurement and an 8-bit microprocessor for serial data output of temperature and humidity information. Additionally factory calibrated, the sensor makes it simple to integrate with other microcontrollers.

The sensor has an accuracy of 1°C and 1% and can measure temperature from 0°C to 50°C and humidity from 20% to 90%. Therefore, if you want to measure in this range, this sensor might be the best option.

 

How to use DHT11 Sensor

The DHT11 Sensor produces serial data and is fully calibrated, making setup incredibly simple. Below is a diagram of how this sensor is connected.

DHT11 Connection Diagram

As you can see the data pin is connected to an I/O pin of the MCU and a 5K pull-up resistor is used. This data pin outputs the value of both temperature and humidity as serial data. If you are trying to interface DHT11 with Arduino then there are ready-made libraries for it which will give you a quick start.

As you can see, a 5K pull-up resistor is being utilized to connect the data pin to an MCU I/O pin. Temperature and humidity values are output as serial data on this data pin. There are pre-made libraries for it that will give you a head start if you're trying to interface DHT11 with Arduino.

The datasheet provided below will be useful if you're trying to interface it with another MCU. The data pin's output will be in the following order: 8 bits of humidity integer data, 8 bits of humidity decimal data, 8 bits of temperature integer data, 8 bits of temperature fractional data, and 8 bits of parity bit. The I/O pin must be briefly brought low and then held high as illustrated in the timing diagram below to instruct the DHT11 module to communicate these data:

Timing Diagram

 

DHT11 Datasheet

DHT11 Datasheet

 

DHT11 FAQ

Are DHT11 and DHT22 interchangeable?

The DHT11 is a little bit more compact and less expensive than the DHT22. These sensors have the advantage of being interchangeable, so you can simply swap a DHT11 for a DHT22 or vice versa.

 

Where is DHT11 sensor used?

This sensor is employed in a number of applications, including the measurement of temperature and humidity levels in HVAC systems. These sensors are also used by weather stations to forecast the weather. In houses where residents are susceptible to the effects of humidity, the humidity sensor is employed as a preventative measure.

 

How accurate is the DHT11?

Additionally, the DHT11 humidity range is from 20 to 80% with 5% accuracy, but the DHT22 sensor's humidity measuring range is from 0 to 100% with 2-5% accuracy.

 

How does a DHT sensor work?

Digital temperature and humidity sensors known as DHTs are inexpensive. There is no need for analog input pins because they measure the surrounding air using a capacitive humidity sensor and a thermistor and communicate a digital signal to the host on the data pin. DHT11, DHT21, and DHT22 sensors are supported by RepRapFirmware as of version 1. 20.

 

Is DHT11 better than DHT22?

In every way, including temperature range, temperature accuracy, humidity range, and humidity accuracy, the DHT22 is superior to the DHT11. The DHT22's only drawback is, of course, its slightly greater price, but you are getting better specs for your money.

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Join our mailing list!

Be the first to know about new products, special offers, and more.

Leave a Reply

We'd love to hear from you! Feel free to share your thoughts and comments below. Rest assured, your email address will remain private.

Name *
Email *
Captcha *
Rating:

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication