{"id":20486411,"url":"https://github.com/oldhammade/dht-pi","last_synced_at":"2026-04-16T23:03:05.730Z","repository":{"id":139698270,"uuid":"75563733","full_name":"OldhamMade/dht-pi","owner":"OldhamMade","description":"Example code for using the DHT11/22 temperature \u0026 humidity sensor with the Raspberry Pi","archived":false,"fork":false,"pushed_at":"2017-02-02T18:43:59.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T21:30:24.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/OldhamMade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-12-04T20:51:11.000Z","updated_at":"2016-12-04T20:51:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3f2ed76-1438-43bb-91a1-19fbc7202250","html_url":"https://github.com/OldhamMade/dht-pi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OldhamMade%2Fdht-pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OldhamMade%2Fdht-pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OldhamMade%2Fdht-pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OldhamMade%2Fdht-pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OldhamMade","download_url":"https://codeload.github.com/OldhamMade/dht-pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242061539,"owners_count":20065762,"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":[],"created_at":"2024-11-15T16:36:17.125Z","updated_at":"2026-04-16T23:03:00.678Z","avatar_url":"https://github.com/OldhamMade.png","language":"C","readme":"# DHT11/22 TEMPERATURE \u0026 HUMIDITY SENSOR\n\nThis repository contains C code and instructions for using UUGear's DHT11 \u0026 DHT22\ntemperature \u0026 humidity sensors with the Raspberry Pi. Example taken from [here](http://www.uugear.com/portfolio/read-dht1122-temperature-humidity-sensor-from-raspberry-pi/)\n\n## Usage\n\nInstall `git`, clone the `wiringPi` repository:\n\n    $ git clone git://git.drogon.net/wiringPi\n\n...then build \u0026 install:\n\n    $ cd wiringPi\n    $ ./build\n\nNext, clone this repository:\n\n    $ git clone https://github.com/OldhamMade/dht-pi\n    $ cd dht-pi\n\n...and build the binary:\n\n    $ cc -Wall dht.c -o dht -lwiringPi\n\nThis binary can be executed with the following command:\n\n    $ sudo ./dht\n\nA `JSON` object will be issued to the console every 2 seconds. Be aware that\nreading the data can often fail due to timing issues. In this case, the values\nof the `JSON` will all be `null`. It is recommended to cache the last good set\nof values to use when `null` values are returned.\n\nFor applications, one suggestion for usage would be to move the `dht` binary to\n`/usr/local/bin` and run it via a supervisor process (for example,\n[supervisord](http://supervisord.org)), capturing the output to a log, then\nreading the last line from the log output when needed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldhammade%2Fdht-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldhammade%2Fdht-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldhammade%2Fdht-pi/lists"}