{"id":13430228,"url":"https://github.com/enjoyneering/AHTxx","last_synced_at":"2025-03-16T05:30:39.505Z","repository":{"id":38535243,"uuid":"410370466","full_name":"enjoyneering/AHTxx","owner":"enjoyneering","description":"This is an Arduino library for Aosong ASAIR AHT1x, AHT2x Digital Humidity \u0026 Temperature Sensor","archived":false,"fork":false,"pushed_at":"2025-03-09T20:23:32.000Z","size":100,"stargazers_count":105,"open_issues_count":3,"forks_count":26,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-09T21:23:50.423Z","etag":null,"topics":["aht10","aht15","aht20","aht21","aht25","aosong","arduino","arduino-library","asair","humidity-sensor","i2c-sensors","temperature-sensor"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enjoyneering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-25T20:02:04.000Z","updated_at":"2025-03-09T20:23:37.000Z","dependencies_parsed_at":"2025-03-09T21:32:56.703Z","dependency_job_id":null,"html_url":"https://github.com/enjoyneering/AHTxx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjoyneering%2FAHTxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjoyneering%2FAHTxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjoyneering%2FAHTxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enjoyneering%2FAHTxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enjoyneering","download_url":"https://codeload.github.com/enjoyneering/AHTxx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aht10","aht15","aht20","aht21","aht25","aosong","arduino","arduino-library","asair","humidity-sensor","i2c-sensors","temperature-sensor"],"created_at":"2024-07-31T02:00:51.239Z","updated_at":"2025-03-16T05:30:39.492Z","avatar_url":"https://github.com/enjoyneering.png","language":"C++","funding_links":[],"categories":["Drivers"],"sub_categories":["Sensors"],"readme":"[![license-badge][]][license] ![version] [![stars][]][stargazers] ![hit-count] [![github-issues][]][issues]\n\n# Aosong ASAIR AHT1x/AHT2x\n\nThis is an Arduino library for _Aosong ASAIR_ AHT10/AHT15/AHT20/AHT21/AHT25/AM2301**B**/AM2311**B** Digital Humidity \u0026 Temperature Sensor\n\n- AHT1x +1.8v..+3.6v, AHT2x +2.2v..+5.5v\n- AHT1x 0.25μA..320μA, AHT2x 0.25μA..980μA\n- temperature range -40°C..+85°C\n- humidity range 0%..100%\n- typical accuracy T ±0.3°C, RH ±2% **(1)**\n- typical resolution T 0.01°C, RH 0.024%\n- normal operating range T -20°C..+60°C, RH 10%..80%\n- maximum operating rage T -40°C..+80°C, RH 0%..100%\n- I²C bus speed 100KHz..400KHz, 10KHz recommended minimum\n- recommended measurement frequency 8sec..30sec **(2)**\n- recommended to route VDD or GND between I²C lines to reduce crosstalk between SCL \u0026 SDA\n- power supply pins must be decoupled with 100nF capacitor\n\nSupports all sensors features:\n- read humidity **(3)**\n- read temperature **(3)**\n- soft reset with sensor initialization\n- CRC calculation for AHT2x **(3)**\n\nTested on:\n- Arduino AVR\n- Arduino ESP8266\n- Arduino ESP32\n- Arduino STM32\n- Arduino SAMD21\n\n**(1)** Prolonged exposure for 60 hours at humidity \u003e 80% can lead to a temporary drift of the signal +3%. Sensor slowly returns to the calibrated state at normal operating conditions.\u003cbr\u003e\n**(2)** High frequency measurement causes the sensor to heat up, the interval must be greater than 1 second to keep self-heating below 0.1°C.\u003cbr\u003e\n**(3)** Library returns 255 if a communication error occurs, calibration coefficient is off or CRC doesn't match (for AHT2x only).\n\n[license-badge]: https://img.shields.io/badge/License-GPLv3-blue.svg\n[license]:       https://choosealicense.com/licenses/gpl-3.0/\n[version]:       https://img.shields.io/badge/Version-1.2.1-green.svg\n[stars]:         https://img.shields.io/github/stars/enjoyneering/AHTxx.svg\n[stargazers]:    https://github.com/enjoyneering/AHTxx/stargazers\n[hit-count]:     https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fenjoyneering%2FAHTxx\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false\n[github-issues]: https://img.shields.io/github/issues/enjoyneering/AHTxx.svg\n[issues]:        https://github.com/enjoyneering/AHTxx/issues/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenjoyneering%2FAHTxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenjoyneering%2FAHTxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenjoyneering%2FAHTxx/lists"}