Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors
Clone or download

Adafruit DHT Humidity & Temperature Sensor Library

An Arduino library for the DHT series of low cost temperature/humidity sensors.


You must have the following Arduino libraries installed to use this class:

Examples include both a "standalone" DHT example, and one that works along with the Adafruit Unified Sensor Library. Unified sensor library is required even if using the standalone version.

Recent Arduino IDE releases include the Library Manager for easy installation. Otherwise, to download, click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.