This library is no longer supported. New library here - https://github.com/enjoyneering/AHTxx
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.