DHT11 / DHT22 Temperature and Humidity Sensor Module

Share This

 Hello friends! Welcome back to ElectroDuino. This blog is base on DHT11 / DHT22 Temperature and Humidity Sensor / Module | How its work? In this blog, we will discuss Introduction to DHT11 / DHT22 Temperature and Humidity Sensor, Difference between DHT11 / DHT22 Sensor and DHT11 / DHT22 module, Difference between DHT11 Sensor and DHT22 Sensor, pin diagram of sensors and modules, Working Principle, its Specifications, and applications.

Introduction

DHT11 and DHT22 are a low cost best performance digital sensor in electronics. These are available in the market as a sensor or as a module. The DHT11 and DHT22 sensors can measure temperature and humidity at the same time. These sensors provide output values in decimal numbers. Both sensors are consist of two parts, one is a capacitive humidity sensor and another one is an NTC thermistor. Where the capacitive humidity sensor is used to measure Relative* humidity and the thermistor is used to measure Temperature. DHT11 and DHT12 Sensor working principles are same, but the major difference is measuring humidity and temperature range. 

DHT11 and DHT22 Temperature and Humidity Sensor and Module
DHT11 and DHT22 Temperature and Humidity Sensor and Module

Difference between DHT11 / DHT22 Sensor and module:

DHT11 / DHT22 Sensors are available in the market as a sensor or as a module. Differences are

  • DHT11 / DHT22 as Sensor:

    This sensor has 4 pins. where the 3rd pin is No Connection(NC), it’s not used. The sensor has no pull-up resistor and power LED(maybe). When you used this sensor in projects this time you can connect an external pull-up resistor with the sensor data pin to get the output.

  • DHT11 / DHT22 as Module:

    These modules have 3 pins. The module consists of a pull-up resistor and a power LED. So, when you used this module in projects this time you do not need to connect an external pull-up resistor with the sensor data pin to get the output.

Difference between DHT11 Sensor and DHT22 Sensor

The DHTxx sensor series has two types of sensors, these are DHT11 and DHT22. These have different characteristics.

DHT11 SensorDHT22 Sensor
The temperature measuring range is from 0 to 50 degrees Celsius with +-2 degrees accuracy.The temperature measuring range is from -40 to +125 degrees Celsius with +-0.5 degrees accuracy.
The humidity measuring range is from 20 to 80% with 5% accuracy.humidity measuring range, from 0 to 100% with 2-5% accuracy.
The sampling rate is 1Hz, Which means we get one new reading every second.The sampling rate is 0.5Hz, Which means we get one new reading every two seconds.

DHT11 / DHT22 Sensor and Module  Pin Diagram

DHT11 and DHT22 Sensor Pin Diagram / Pinout

DHT11 and DHT22 Sensor Pinout
DHT11 and DHT22 Sensor Pinout
Pin NoPin NameDescription
1VCCPower supply 3.5V to 5.5V
2DataOutputs both Temperature and Humidity through serial Data
3NCNo Connection and hence not used
4GroundConnected to the ground of the Power supply
 

DHT11 and DHT22 Sensor Module Pin Diagram / Pinout

DHT11 and DHT22 Module Pinout/ Pin Diagram/ Pin Configuration
DHT11 and DHT22 Module Pinout
Pin NoPin NameDescription
1VccPower supply 3.5V to 5.5V
2DataOutputs both Temperature and Humidity through serial Data
3GroundConnected to the ground of the Power supply

How DHT11 / DHT22 Sensor Works

In this part, we will show you which components are used to construct DHT11 and DHT22 Temperature and Humidity Sensors and how these components work. Mainly both sensors are consist of 3 key components, these are a humidity sensing component, an NTC temperature sensor (or thermistor), and an IC on the backside of the sensor. Let’s see how these are work.

Humidity Sensing Component:

The humidity sensing component has two electrodes with a moisture-holding substrate as a dielectric between them. When the moisture content changes (humidity changes) in our environment, the conductivity of the substrate changes, or the resistance between these electrodes changes. The IC measure and process the changing of resistance value and convert this value into a digital output value. This digital output is easy to read for a microcontroller.

DHT11 and DHT22 Sensor Humidity Sensing Component
DHT11 and DHT22 Sensor Humidity Sensing Component

NTC temperature sensor (or thermistor):

A thermistor is a variable resistor, its resistance changes according to changes of temperature. The NTC word means that it is a Negative Temperature coefficient, which indicates that its resistance decreases with the increase of the temperature. Normally this sensor is made by semiconductor ceramic or polymers, so we get a larger resistance value for the smallest change in temperature. These changes of the resistance value are easy to read by a microcontroller.

Thermistor and Resistance vs Temperature graph
Thermistor and Resistance vs Temperature graph

Specifications

ParameterValue for DHT11Value for DHT22
Working input voltage3V to 5V3V to 5V
Max Current use during conversion (while requesting data)2.5mA2.5mA
OutputSerial dataSerial data
Temperature Range0°C to 50°C-40°C to 80°C
Humidity Range20% to 90%0% to 100%
Humidity Accuracy5%2-5%
Temperature Accuracy+-2 degrees+-0.5 degrees
Sampling rate1Hz0.5Hz
ResolutionTemperature and Humidity both are 16-bitTemperature and Humidity both are 16-bit
Sensor body size15.5mm x 12mm x 5.5mm15.1mm x 25mm x 7.7mm

Applications

  • Measuring humidity and temperature values inside the room, Office, and cars.
  • Making the Local Weather station systems.
  • Measuring humidity and temperature values in air conditioning systems. 
  • Industries have used this sensor for measuring humidity values and as a safety measure.
Share This

Leave a Reply

Your email address will not be published. Required fields are marked *