{"id":30023157,"url":"https://github.com/implferris/dht22-sensor","last_synced_at":"2025-08-06T04:41:47.919Z","repository":{"id":305978571,"uuid":"1024615636","full_name":"ImplFerris/dht22-sensor","owner":"ImplFerris","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-23T01:57:12.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-23T02:02:11.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ImplFerris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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,"zenodo":null}},"created_at":"2025-07-23T01:57:09.000Z","updated_at":"2025-07-23T01:57:16.000Z","dependencies_parsed_at":"2025-07-23T02:13:09.566Z","dependency_job_id":null,"html_url":"https://github.com/ImplFerris/dht22-sensor","commit_stats":null,"previous_names":["implferris/dht22-sensor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ImplFerris/dht22-sensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImplFerris%2Fdht22-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImplFerris%2Fdht22-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImplFerris%2Fdht22-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImplFerris%2Fdht22-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImplFerris","download_url":"https://codeload.github.com/ImplFerris/dht22-sensor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImplFerris%2Fdht22-sensor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269022173,"owners_count":24346274,"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-08-06T02:00:09.910Z","response_time":99,"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":[],"created_at":"2025-08-06T04:41:47.404Z","updated_at":"2025-08-06T04:41:47.885Z","avatar_url":"https://github.com/ImplFerris.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHT22 Sensor Driver\n\nA platform-agnostic driver for the DHT22 (AM2302) temperature and humidity sensor using [`embedded-hal`] traits.  \nDesigned for use in `no_std` embedded environments.\n\n---\n\n## Features\n\n- Supports blocking reads from the DHT22 sensor.\n- Compatible with any platform that implements [`embedded-hal`] traits.\n- `no_std` support.\n- Tested using `embedded-hal-mock`.\n\n---\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\n# dht22-sensor = \"0.1\" \ndht22-sensor = { git = \"https://github.com/implferris/dht22-sensor\" }\n```\n\n### Example\n```rust\nuse dht22_sensor::Dht22;\nuse embedded_hal::digital::{InputPin, OutputPin};\nuse embedded_hal::delay::DelayNs;\n\n// `pin` must support switching between input/output modes.\n// `delay` should implement DelayNs for microsecond delays.\n\nlet mut dht = Dht22::new(pin, delay);\nmatch dht.read() {\n    Ok(reading) =\u003e {\n        info!(\"Temperature: {:.1} °C\", reading.temperature);\n        info!(\"Humidity: {:.1} %\", reading.humidity);\n    }\n    Err(e) =\u003e {\n        error!(\"DHT22 read error: {:?}\", e);\n    }\n}\n```\n\n## License\nMIT\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimplferris%2Fdht22-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimplferris%2Fdht22-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimplferris%2Fdht22-sensor/lists"}