{"id":20358785,"url":"https://github.com/almond-hydroponics/sht-sensor-lib","last_synced_at":"2026-04-17T08:04:36.370Z","repository":{"id":104842352,"uuid":"271505443","full_name":"almond-hydroponics/sht-sensor-lib","owner":"almond-hydroponics","description":"sht21 sensor library","archived":false,"fork":false,"pushed_at":"2020-06-12T09:55:09.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T17:53:10.113Z","etag":null,"topics":["environmental-monitoring","esp32","esp8266","sht21"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/almond-hydroponics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-06-11T09:27:56.000Z","updated_at":"2020-06-12T11:27:26.000Z","dependencies_parsed_at":"2023-03-13T14:53:02.751Z","dependency_job_id":null,"html_url":"https://github.com/almond-hydroponics/sht-sensor-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almond-hydroponics/sht-sensor-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almond-hydroponics%2Fsht-sensor-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almond-hydroponics%2Fsht-sensor-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almond-hydroponics%2Fsht-sensor-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almond-hydroponics%2Fsht-sensor-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almond-hydroponics","download_url":"https://codeload.github.com/almond-hydroponics/sht-sensor-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almond-hydroponics%2Fsht-sensor-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27394208,"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","status":"online","status_checked_at":"2025-11-30T02:00:05.582Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["environmental-monitoring","esp32","esp8266","sht21"],"created_at":"2024-11-14T23:28:52.472Z","updated_at":"2025-11-30T14:06:40.106Z","avatar_url":"https://github.com/almond-hydroponics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## sht-sensor-lib\nLibrary and example sketch for temperature and humidity sensor SHT21 (Sensirion) works with Arduino, ESP8266\n\nThis library works with temperature and humidity sensor SHT21 (Sensirion) both tested with Arduino and ESP8266. The demo sketch puts out the current temperature (Celsius) and humidity (%RH) values via the serial port.\n\n## SHT21/HTU21D for Temperature, Humidity\n\nThe HTU21D aka. SHT21 is a I2C digital Temperature / humidity sensor with a typical accuracy of ±2% with an operating range that's optimized from 5% to 95% RH, temperature output has an accuracy of ±1°C from -30~90°C. \n\nTHe sensor is implemented as a reusable class which will use the sensor and expose the environmental factors (namely temperature and humidity). \n\n#### Usage\n    SHT21 sht;\n    bool b = sht.begin(4, 5);\n    if (b)\n    {\n      Serial.printf(\"Temp:%f, Humid:%f, dew:%f, HI%f \\n\", htu.getTemperature(), htu.getHumidity(), htu.getDewPoint(), htu.getHeatIndex());\n    }\n\n`begin` can pass the ESP8266 IO pin numbers to be used as SDA and SCL lines for I2C communication. \n\nThe measurements are retunrned in metric units, i.e. `Temperature` in `Celcius` and `Relative Humidity` in  `Percentage`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmond-hydroponics%2Fsht-sensor-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmond-hydroponics%2Fsht-sensor-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmond-hydroponics%2Fsht-sensor-lib/lists"}