Recommended · for beginners

Raspberry Pi Tutorial 26 - GPIO DHT22 Digital Temperature + Humidity Sensor

Alexander Baran-Harper

Why people recommend it

Part of a numbered Raspberry Pi tutorial series, showing how to wire a DHT22 temperature and humidity sensor and read it from Python 3.

Watch for: Poll slowly and retry failed readings

In their words

First as per advice from Raspberry Pi Tutorial 26 - GPIO DHT22 Digital Temperature + Humidity Sensor, I made a loop to read until it is different to -999:

Michał on raspberrypi.stackexchange.com, Feb 2016. CC BY-SA.

If you liked this