{"id":20989754,"url":"https://github.com/robtillaart/dhtstable","last_synced_at":"2025-05-14T18:32:05.633Z","repository":{"id":39997160,"uuid":"276134114","full_name":"RobTillaart/DHTstable","owner":"RobTillaart","description":"Arduino Library for the DHT temperature and humidity sensor. ","archived":false,"fork":false,"pushed_at":"2024-04-13T08:58:43.000Z","size":33,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-07T18:27:47.957Z","etag":null,"topics":["arduino","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/RobTillaart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"RobTillaart","custom":"https://www.paypal.me/robtillaart"}},"created_at":"2020-06-30T15:11:25.000Z","updated_at":"2024-01-25T19:39:15.000Z","dependencies_parsed_at":"2024-04-13T09:52:30.307Z","dependency_job_id":"6c35a00a-cf57-4471-a364-b950ad308425","html_url":"https://github.com/RobTillaart/DHTstable","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHTstable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHTstable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHTstable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHTstable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobTillaart","download_url":"https://codeload.github.com/RobTillaart/DHTstable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225305600,"owners_count":17453410,"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","humidity","temperature"],"created_at":"2024-11-19T06:26:01.538Z","updated_at":"2024-11-19T06:26:02.196Z","avatar_url":"https://github.com/RobTillaart.png","language":"C++","funding_links":["https://github.com/sponsors/RobTillaart","https://www.paypal.me/robtillaart"],"categories":[],"sub_categories":[],"readme":"\n[![Arduino CI](https://github.com/RobTillaart/DHTstable/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)\n[![Arduino-lint](https://github.com/RobTillaart/DHTstable/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/DHTstable/actions/workflows/arduino-lint.yml)\n[![JSON check](https://github.com/RobTillaart/DHTstable/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/DHTstable/actions/workflows/jsoncheck.yml)\n[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/DHTstable.svg)](https://github.com/RobTillaart/DHTstable/issues)\n\n[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/DHTstable/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/RobTillaart/DHTstable.svg?maxAge=3600)](https://github.com/RobTillaart/DHTstable/releases)\n[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/DHTstable.svg)](https://registry.platformio.org/libraries/robtillaart/DHTstable)\n\n\n# DHTStable\n\nArduino Library for the DHT11 and DHT22 temperature and humidity sensor. \n\n\n## Description\n\nThe DHTStable library is a \"frozen\" version of the DHTlib.\nThis version is stable for both ARM and AVR.\n\n0.2.5 is a migration to its own repository.\n0.2.6 fixed URL to new repository\n0.2.7 getTemperature() and getHumidity() added\n      added Arduino-CI + unit test.\n0.2.8 fix negative temperature\n0.2.9 fix URL in JSON file\n\n**breaking name**\n\n1.0.0 renamed the dht.h file to DHTStable.h to fix the incompatible flag \nSee issue https://github.com/RobTillaart/DHTstable/issues/8\nAlso made temperature and humidity private\n\n\nThe latest developments for the DHT sensors are done in https://github.com/RobTillaart/DHTNEW\nwhich is also tested on an ESP32.\nThere are some interface differences, these are relative small but can be time critical.\n\nIt is advised to upgrade to the DHTNEW library if one needs the new functionality.\n\n\n## Interface\n\n```cpp\n#include \"DHTStable.h\"\n```\n\n\n\n#### Constructor\n\n- **dht()** Constructor\n\n\n#### Read functions per type\n\n- **int read11(uint8_t pin)**\n- **int read(uint8_t pin)**\n\n\n- **int read12(uint8_t pin)**\n- **int read21(uint8_t pin)**\n- **int read22(uint8_t pin)**\n- **int read33(uint8_t pin)**\n- **int read44(uint8_t pin)**\n- **int read2301(uint8_t pin)**\n- **int read2302(uint8_t pin)**\n- **int read2303(uint8_t pin)**\n- **int read2320(uint8_t pin)**\n- **int read2322(uint8_t pin)**\n\n\n- **float getHumidity()**\n- **float getTemperature()**\n\n\n#### Enable / disable interrupts\n\n- **bool getDisableIRQ()**\n- **void setDisableIRQ(bool b )**\n\n\n\n\n## Operational\n\nSee examples.\n\n#### Voltage AM2301 \n\nIn a test an AM2301 had problems giving no humidity (99.9% overflow) when this\nDHTStable library was used with an ESP8266. (Reported by mail, no GH issue)\nAfter days of testing and thinking and more testing the cause was found. \nThe AM2301 was powered by a 5V3 power supply which was apparently too high while having the\ndata handshakes at 3V3. \nWhen the VCC voltage was lowered to 5V1 it appeared to work as it should. \n(Kudos to Viktor for finding the cause)\n\n\n## Future\n\n- no active development \n  - follow bug fixes from DHTnew\n  - on request.\n\n#### Must\n\n#### Should\n\n#### Could\n\n#### Wont\n\n- move some const int to .cpp file\n- improve unit test\n  - add constants test\n\n\n## Support\n\nIf you appreciate my libraries, you can support the development and maintenance.\nImprove the quality of the libraries by providing issues and Pull Requests, or\ndonate through PayPal or GitHub sponsors.\n\nThank you,\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtillaart%2Fdhtstable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobtillaart%2Fdhtstable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtillaart%2Fdhtstable/lists"}