DHT11/DHT22 — relative humidity [%RH] (dht_read_humidity)¶
What it does: Returns the last measured relative humidity from the DHT sensor in percent.

Inputs¶
- No data inputs.
Output¶
- Number: relative humidity in %RH.
When to use it¶
- After calling
dht_measure, when you want to get the current humidity. - For controlling dehumidification, ventilation or monitoring the climate in the room.
Tips and pitfalls¶
- The block only reads the last sample, it does not start a new measurement itself.
- The DHT11 has less accuracy than the DHT22/AM2302, especially at the edges of the range.
Usage example¶

Generated Python example¶
value = dhts.humidity()