{"id":13430237,"url":"https://github.com/Seeed-Studio/Seeed_Arduino_AHT20","last_synced_at":"2025-03-16T05:30:38.341Z","repository":{"id":140440047,"uuid":"270882944","full_name":"Seeed-Studio/Seeed_Arduino_AHT20","owner":"Seeed-Studio","description":"This library provides an example code to get the temperature and humidity from the AHT20 sensor.","archived":false,"fork":false,"pushed_at":"2025-01-08T08:09:13.000Z","size":17,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-03T08:35:28.560Z","etag":null,"topics":["arduino","arduino-library","humidity","temperature"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seeed-Studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-06-09T02:22:01.000Z","updated_at":"2025-01-08T08:09:17.000Z","dependencies_parsed_at":"2025-01-07T09:34:13.347Z","dependency_job_id":"b6019a52-fe40-4e63-a897-4d731b57967d","html_url":"https://github.com/Seeed-Studio/Seeed_Arduino_AHT20","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FSeeed_Arduino_AHT20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FSeeed_Arduino_AHT20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FSeeed_Arduino_AHT20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FSeeed_Arduino_AHT20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seeed-Studio","download_url":"https://codeload.github.com/Seeed-Studio/Seeed_Arduino_AHT20/tar.gz/refs/heads/master","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":["arduino","arduino-library","humidity","temperature"],"created_at":"2024-07-31T02:00:51.328Z","updated_at":"2025-03-16T05:30:37.996Z","avatar_url":"https://github.com/Seeed-Studio.png","language":"C++","funding_links":[],"categories":["Drivers"],"sub_categories":["Sensors"],"readme":"# Seeed_Arduino_AHT20 [![Build Status](https://travis-ci.com/Seeed-Studio/Seeed_Arduino_ATH20.svg?branch=master)](https://travis-ci.com/Seeed-Studio/Seeed_Arduino_ATH20)\n\n## Introduction\n\nAHT20 is a new generation of temperature and humidity sensor embedded with a dual-row flat and no-lead SMD package, suitable for the reflow soldering. AHT20 is equipped with a newly designed ASIC chip: an improved MEMS semiconductor capacitive humidity sensor, and a standard on-chip temperature sensor. \n\n## Usage \n\n```c++\n// ARDUINO DEMO FOR GROVE-AHT20\n//\n#include \u003cWire.h\u003e\n#include \"AHT20.h\"\n\nAHT20 AHT;\n\nvoid setup()\n{\n    Serial.begin(115200);\n    Serial.println(\"AHT20 DEMO\");\n    AHT.begin();\n}\n\nvoid loop()\n{\n    float humi, temp;\n    \n    int ret = AHT.getSensor(\u0026humi, \u0026temp);\n    \n    if(ret)     // GET DATA OK\n    {\n        Serial.print(\"humidity: \");\n        Serial.print(humi*100);\n        Serial.print(\"%\\t temerature: \");\n        Serial.println(temp);\n    }\n    else        // GET DATA FAIL\n    {\n        Serial.println(\"GET DATA FROM AHT20 FAIL\");\n    }\n    \n    delay(100);\n}\n\n// END FILE\n```\n\n## API\n\n### void begin()\n\nInitializing the AHT20\n\n```c++\n    AHT.begin();\n```\n\n### bool getSensor(float *h, float *t)\n\nget all data of sensor\n\n\n```c++\n    int ret = AHT.getSensor(\u0026humi, \u0026temp);\n```\n\n### bool getTemperature(float *t)\n\nget Temperature of sensor\n\n\n```c++\n    int ret = AHT.getTemperature(\u0026temp);\n```\n\n### bool getHumidity(float *h)\n\nget Humidity of sensor\n\n```c++\n    int ret = AHT.getHumidity(\u0026humi);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeeed-Studio%2FSeeed_Arduino_AHT20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSeeed-Studio%2FSeeed_Arduino_AHT20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeeed-Studio%2FSeeed_Arduino_AHT20/lists"}