This is an Arduino library for Aosong ASAIR AHT10, AHT15 Digital Humidity & Temperature Sensor
Go to file
2021-09-25 16:32:28 -04:00
examples Update AHT20_Any_MCU_Serial.ino 2020-03-20 19:38:07 -04:00
src Update AHT10.cpp 2020-03-20 18:49:54 -04:00
keywords.txt Update keywords.txt 2020-03-20 18:45:34 -04:00
library.json Update library.json 2020-03-20 18:46:17 -04:00
library.properties Update library.properties 2020-03-20 18:46:55 -04:00
README.md Update README.md 2021-09-25 16:32:28 -04:00

license-badge version stars hit-count github-issues

This library is no longer supported. New library here - https://github.com/enjoyneering/AHTxx

Aosong ASAIR AHT10, AHT15 & AHT20

This is an Arduino library for Aosong ASAIR AHT10, AHT15 & AHT20 Digital Humidity & Temperature Sensor

  • Supply voltage: 1.8v - 3.6v for AHT10, AHT15 & 2.0v - 5.5v for AHT20
  • Temperature range: -40°C..+85°C
  • Temperature resolution: 0.01°C
  • Temperature accuracy: ±0.3°C
  • Relative humidity range: 0%..100%
  • Relative humidity resolution: 0.024%
  • Relative humidity accuracy: ±2%**
  • I²C bus speed: 0Hz - 400KHz
  • Recomended polling frequency: 8sec - 30sec***

Supports all sensors features:

  • read humidity****
  • read temperature****
  • soft reset with sensor initialization

Tested on:

  • Arduino AVR
  • Arduino ESP8266
  • Arduino ESP32
  • Arduino STM32

**Prolonged exposure for 60 hours at humidity > 80% can lead to a temporary drift of the signal +3%. Sensor slowly returns to the calibrated state at normal operating conditions.

***If sampling rate of the measurement is too high, the sensor overheats. To prevent the temperature of the sensor from rising > 0.1°C, read sensor once every 2 seconds.

****The library returns 255 if a communication error occurs or if the calibration coefficient is off.