{"id":27789258,"url":"https://github.com/j0hax/pico-dht","last_synced_at":"2026-04-25T12:35:48.543Z","repository":{"id":103175631,"uuid":"601248706","full_name":"j0hax/pico-dht","owner":"j0hax","description":"Digital temperature and humidity reporting for the Raspberry Pi Pico","archived":false,"fork":false,"pushed_at":"2023-03-21T14:10:24.000Z","size":3788,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T12:23:40.559Z","etag":null,"topics":["dht22","leibniz-university-hannover","micropython","rpi-pico"],"latest_commit_sha":null,"homepage":"","language":"OpenSCAD","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/j0hax.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,"zenodo":null}},"created_at":"2023-02-13T17:12:21.000Z","updated_at":"2023-03-17T12:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fe2a8ab-eb63-464e-8247-d06633afc0f2","html_url":"https://github.com/j0hax/pico-dht","commit_stats":null,"previous_names":["j0hax/pico-dht","j0hax/dht22"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/j0hax/pico-dht","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0hax%2Fpico-dht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0hax%2Fpico-dht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0hax%2Fpico-dht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0hax%2Fpico-dht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j0hax","download_url":"https://codeload.github.com/j0hax/pico-dht/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0hax%2Fpico-dht/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dht22","leibniz-university-hannover","micropython","rpi-pico"],"created_at":"2025-04-30T17:50:29.212Z","updated_at":"2026-04-25T12:35:48.535Z","avatar_url":"https://github.com/j0hax.png","language":"OpenSCAD","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pico-dht\nDigital temperature and humidity reporting for the Raspberry Pi Pico, used to continuously monitor a server room at the Mechanical Engineering Campus of Leibniz University Hannover.\n\n![The project without its case](doc/internals.jpg \"The project without its case\")\n\n## Hardware Used\n1. Raspberry Pi Pico\n2. DHT22/AM2302 or DHT11 sensor\n3. Wires/Breadboard\n4. 3D-printed case (optional)\n\n### Wiring\n| Pi Pico Label | Purpose | DHT22 Pin |\n|---------------|---------|-----------|\n| 3V3           | Power   | 1         |\n| GPIO 15       | Data    | 2         |\n| GND           | Ground  | 4         |\n\n### Notes\n- Many variants of the DHT22/DHT11 will have four pins. The third pin is unused.\n- A pull-up resistor can be used but is not required, as the DHT22 has its own built-in.\n\n## Install\nBy copying `main.py` to the Pico's on-board flash memory, it is executed at every boot.\n\nStandard DHT drivers were [migrated](https://github.com/micropython/micropython/pull/9220) to `micropython-lib` starting with MicroPython 1.19, so most tutorials on the internet regarding this sensor no longer work!\n\nThe [dht](https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/sensor/dht/dht.py) package can be copied over serial or installed OTA by modifying and executing `setup.py` on an internet-connected Pi Pico W. The library is should be saved to internal flash at `/lib`.\n\n## Usage\nA periodic timer is set to request sensor data every 3 seconds. The values are JSON encoded and printed over serial.[^1] The onboard LED will be on for the duration of this subroutine.\n\nOn most Linux hosts, the Pi Pico will be available under `/dev/ttyACM0`. The reading processes may need to part of the `dialout` group.\n\nFor an example implementation to read this data, see [dht22-nagios](https://github.com/j0hax/dht22-nagios).\n\n### Connection Errors\nIf the wires are not soldered and knocked around, a connection may become flaky and a GPIO error can occur. Any errors when reading data are reported in the JSON's `error` attribute as a POSIX errno.\n\n## Case\nThe 3D-Printed case can be used to mount the internals. It features a hook to hang the arrangement from the ceiling.\n\n[OpenSCAD](https://openscad.org/) is used to model, customize and compile the final STL.\n\n[^1]: Unfortunately, WPA2-EAP Networks such as eduroam are not supported very well by MicroPython at the moment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0hax%2Fpico-dht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj0hax%2Fpico-dht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0hax%2Fpico-dht/lists"}