# adafruit/DHT-sensor-library

Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors

Repository: https://github.com/adafruit/DHT-sensor-library
Canonical: https://ross.abutalabs.com/products/dht-sensor-library
Homepage: https://learn.adafruit.com/dht
Language: C++
License: MIT
License Family: permissive
Topics: arduino-library
Last push: 2026-03-03T14:49:02+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 70, release rhythm 41, longevity 100
- inputs: {"age_days": 5553, "days_push": 183, "days_rel": 183, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2165, forks 1426 (observed 2026-08-28T04:06:21.311661+00:00)

## What it is
An Arduino library for reading DHT series low-cost temperature and humidity sensors (DHT11, DHT22, AM2302). It provides a simple C++ API on top of the Adafruit Unified Sensor driver.

## Use cases
- read temperature and humidity from a DHT11 sensor on Arduino
- log indoor climate data with a DHT22 and an ESP32
- build a weather station with Arduino and AM2302 sensors
- get humidity readings from a single-wire digital sensor in a sketch
- interface DHT sensors with Adafruit Unified Sensor API

## When to choose
- you use Arduino or compatible microcontrollers with DHT-series sensors
- you want a well-maintained, widely used library with examples and tutorials
- you need compatibility with the Adafruit Unified Sensor driver

## When to avoid
- you need high-accuracy or fast-sampling environmental sensing (DHT sensors are slow and basic)
- you use sensors from other families like SHT3x or BME280
- you are not on an Arduino-compatible platform

## Facets
- artifact type: library
- maturity: stable
- function: embedded, sdk
- domain: iot, hardware, weather
- platform: embedded, cpp, iot
- tags: arduino, dht11, dht22, temperature-sensor, humidity-sensor, sensors, maker

## Member repositories
- adafruit/DHT-sensor-library (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:21.311661+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:49:58.749464+00:00, confidence not recorded.
  - readme: https://github.com/adafruit/DHT-sensor-library (fetched 2026-08-28T04:06:21.311661+00:00, sha e6cb9c429a33)
  - homepage: https://learn.adafruit.com/dht (fetched 2026-08-29T10:29:48.386902+00:00, sha 63396d6a40ac)
  - site_page: https://www.adafruit.com/about (fetched 2026-08-29T10:29:48.398585+00:00, sha 695846072bc5)
  - site_page: https://www.adafruit.com/faq (fetched 2026-08-29T10:29:48.396341+00:00, sha c6a89d0ac23b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
