Ir al contenido

 DHT11 
 Temperature sensors 

Cost-effective temperature and humidity sensor for basic environmental monitoring in consumer and DIY applications.

 Temperature range

0 / +50°C

 Temperature precision
+/-2,0K

 Humidity precision
+/- 5% RH

 Resolution
1°C / 1% RH

 Power supply voltage

3,0→5,5V

Response time

1 mesure / s

 Typical current
0,5 mA

Price
Low

What is a DHT11 sensor ?


The DHT11 is an ultra-simple digital humidity and temperature sensor to use.

It combines:

  • a capacitive humidity sensor,
  • an integrated thermistor,
  • and an analog-to-digital converter (ADC),
  • all controlled by a small internal chip that transmits data in a 1-wire digital format.

It is an ideal choice for beginner projects, basic weather stations, or DIY home automation.

Operating principle


The sensor performs an internal conversion every 1 to 2 seconds.

The temperature and humidity values are then transmitted bit by bit via a single data pin (DATA), according to a precise timing protocol.

Message structure:

[8 bits HR int] [8 bits HR decimal] [8 bits T int] [8 bits T décimal] [8 bits checksum]

💡 Each measurement lasts about 20 ms, with a minimum cycle of 1 second between two readings.

Example of digital conversion (Arduino)


#include "DHT.h" #define DHTPIN 2 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); dht.begin(); } void loop() { float h = dht.readHumidity(); float t = dht.readTemperature(); Serial.print("Humidité: "); Serial.print(h); Serial.print("% Température: "); Serial.print(t); Serial.println("°C"); delay(2000); }

✅ Example:

Humidity: 56.0 % Temperature: 23.0 °C

Principle diagram


+5V │ [DHT11] │ DATA ─────┐ │ NC │ │ GND ──────┘ │ └── Pull-up resistance 10 kΩ on DATA

💡 The DATA pin requires a pull-up resistor between DATA and VCC.

Application areas


🌦️ Mini weather stations

🏠 Home automation projects (ventilation, air conditioning)

🧠 Educational IoT and ambient sensors

🧪 Prototypes and electronic models

🔋 Non-critical low-power systems






Should I choose a DHT11 sensor ?

Strengths points

  • 💰 Ultra economical
    → One of the cheapest sensors on the market.
  • 🧰 Easy to use
    → Compatible with all Arduino / ESP / Raspberry libraries.
  • 🔋 Very low consumption
  • → Perfectly suitable for small battery-powered systems.
  • 📦 Available in module or sensor only
  • → Versions with or without a mounting board (DHT11 vs DHT11 module).

Weaknesses points

  • 🎯 Limited precision
    → ±2 °C and ±5 % RH — sufficient for display, not for industrial control.
  • 🐢 Slow refresh
    → 1 measure/second maximum, unusable for fast processes.
  • 🌡️ Restricted beach→ Does not operate below 0 °C or above 50 °C.

Useful information

Here is some useful information regarding the DHT11 sensors.

Brooch Name
Description
1 VCC 3,3–5,5 V
2 DATA Series numerical data
3 NC Not connected
4 GND Mass
💡 Some boards integrate a LED and a pull-up resistor directly on the module.
Bits Binary value
Signification
0–7 00101110 Humidity = 46 %
8–15 00000000 Decimal = 0 %
16–23 00010110 Temperature = 22 °C
24–31 00000000 Decimale = 0 °C
32–39 01101100 Checksum
✅ Checksum = sum of the first 4 bytes (mod 256).

3.3V ───────────┐ │ [DHT11] │ DATA ───────┐ │ GND │ │ │ └── Resistance 10kΩ ─── +VCC

Condition Temperature (°C) Humidity (%)
Standard office 22 46
Wet greenhouse 28 81
Heated air 24 27
💡 The sensor reacts slowly (~5–10 s) to sudden changes in humidity.
Temperature (°C) Error (K) HR Error (%)
0 ±2,0 ±5,0
25 ±1,0 ±4,0
50 ±2,0 ±5,0
💡 The DHT11 remains an excellent beginner sensor, but should be avoided for precise control systems.

More than 1,000,000 probes delivered in 2025

Contact us for a personalized offer

Contact Us

Need a DHT11 sensor?

Whether you need a few parts for a prototype or several hundred for a production line, we support you at every step.