Digital temperature and humidity sensor
DHT11 Working Principle
Learn how DHT11 works with an illustrated explanation and practical readings.
DHT11 at a glance
Follow the labeled connections and functional stages
How it works
3 stages · Explore one step at a time
Start the transaction
Pull SDA LOW for 18–30 ms, then release it. Use a GPIO input or open-drain state so the sensor can respond.
Measure pulse widths
The sensor acknowledges and sends 40 bits. Distinguish approximately 24 µs and 71 µs HIGH pulses after each LOW interval.
Validate and display
Check the sum byte, decode temperature and humidity, and wait at least two seconds before another request.
Step 1 of 3