DHT11 vs DHT22: which sensor range fits your build?
The DHT11 and DHT22 both return temperature and humidity over a single data pin. The differences recorded here come from our circuit guide and our simulator module definitions.
Study guideElectronicsSensors
The recorded difference
The DHT11 guide wires a three-leg sensor: power, data and ground. The data leg goes to one digital pin and needs no extra resistor. The sensor sends a 40-bit sequence; the first part carries relative humidity, the second temperature and the last part a check byte used to detect corrupted data. A second request before the measurement cycle finishes can return old values, so the sketch waits between readings.
Our simulator records both sensors with three pins named VCC, DATA and GND. For the DHT11 it records a temperature range of -20 to 60 degrees Celsius with a one-degree step and a 5 V supply model. For the DHT22 it records -40 to 80 degrees Celsius with a half-degree step and a 3.3 to 5 V supply model.
DHT11 vs DHT22 side by side
| Question | DHT11 | DHT22 |
|---|---|---|
| Pins in our model | VCC, DATA, GND | VCC, DATA, GND |
| Data line | One digital pin, no extra resistor | One data pin in the module model |
| Modelled temperature range | -20 to 60 °C, step 1 | -40 to 80 °C, step 0.5 |
| Modelled supply | 5 V | 3.3 V to 5 V |
| Data integrity | 40-bit frame with check byte | Documented in the module catalogue |
Read both columns against the same question. A difference in interface or recorded range is a reason to choose, not a claim that one part is generally better.
Evidence from our own material
DHT11 frame
The first part of the 40-bit sequence carries humidity, the second temperature and the final part a check byte. (source: en/devre/dht11-ile-sicaklik-ve-nem-olcme.html)
Reading interval
A request made before the measurement cycle completes may return old or faulty data, so the guide inserts a wait. (source: en/devre/dht11-ile-sicaklik-ve-nem-olcme.html)
Simulator ranges
The module definitions record different temperature limits, step sizes and supply ranges for the two parts. (source: js/breadboard-sim.js)
Which one to pick
Best for a first digital-sensor lesson: the DHT11, because the guide explains the whole 40-bit frame and the single-pin connection step by step.
Best when your recorded range needs sub-zero or half-degree steps: the DHT22 as modelled in our simulator. These are catalogue values in a teaching tool, not a measurement guarantee for a real part.
A short check you can do now
Question 1. How many pins does each sensor module record?
Question 2. What is the purpose of the check byte?
Question 3. Which sensor model steps in half degrees?
If you can answer all three without rereading, move on. If not, go back to the table and one source note — that is usually enough.
Next steps in the library
Continue with a hands-on guide, a browser simulator or a free account.
Generated from DersTeders' own material. Source files: en/devre/dht11-ile-sicaklik-ve-nem-olcme.html (contains no measurement value or accuracy claim) · js/breadboard-sim.js (DHT11 and DHT22 module records). Names such as Uno, Nano, DHT11, DHT22, HC-SR04, VL53L0X, servo and stepper are used as component identifiers only. This page records documented behaviour and interface differences; it makes no cost comparison, no maker ranking, no commercial endorsement and no performance promise.
Save your progress. Create a free account to keep your place across lessons, quizzes and circuits.
Save your circuit