AM2302 temperature and humidity sensor
DHT22 Working Principle
Learn how DHT22 works with an illustrated explanation and practical readings.
DHT22 at a glance
Follow the labeled connections and functional stages
How it works
3 stages · Explore one step at a time
Request a sample
Drive SDA LOW for about 1 ms, then release it so the pullup and sensor can control the line.
Receive five bytes
Classify each HIGH pulse after its LOW interval. Assemble the 40 bits in most-significant-bit-first order.
Decode the words
Check the byte sum. Divide the humidity word and the temperature magnitude by ten; apply the temperature sign bit.
Step 1 of 3