{"id":19892312,"url":"https://github.com/peff74/dallas_ds18b20_non_blocking","last_synced_at":"2026-04-12T06:31:09.577Z","repository":{"id":251178698,"uuid":"812978589","full_name":"peff74/Dallas_ds18b20_non_blocking","owner":"peff74","description":"A little Arduino script to read DS18B20 non blocking","archived":false,"fork":false,"pushed_at":"2024-08-01T08:58:00.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T05:26:59.195Z","etag":null,"topics":["arduino","beginner-friendly","dallas","dallas-ds18b20","dallas-temperature","ds18b20","esp32","esp8266","non-blocking"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peff74.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":"2024-06-10T09:18:44.000Z","updated_at":"2024-08-01T08:58:03.000Z","dependencies_parsed_at":"2024-08-01T10:25:22.552Z","dependency_job_id":"2b00658a-7fca-4576-b7b8-2d067e2b5ba6","html_url":"https://github.com/peff74/Dallas_ds18b20_non_blocking","commit_stats":null,"previous_names":["peff74/dallas_ds18b20_non_blocking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peff74/Dallas_ds18b20_non_blocking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FDallas_ds18b20_non_blocking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FDallas_ds18b20_non_blocking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FDallas_ds18b20_non_blocking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FDallas_ds18b20_non_blocking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peff74","download_url":"https://codeload.github.com/peff74/Dallas_ds18b20_non_blocking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FDallas_ds18b20_non_blocking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31706764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["arduino","beginner-friendly","dallas","dallas-ds18b20","dallas-temperature","ds18b20","esp32","esp8266","non-blocking"],"created_at":"2024-11-12T18:23:01.980Z","updated_at":"2026-04-12T06:31:09.543Z","avatar_url":"https://github.com/peff74.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Non blocking DS18B20 Arduino Script\n\nThis Arduino script reads a DS18B20 temperature sensor only by using the OneWire library. \nThe script initiates temperature measurements, checks if the sensor is busy, and retrieves temperature data.\nWithout blocking \n\n\n\n## Script Details\n\nThe script includes the following functions:\n\n- `setupDS18b20()`: Initializes the DS18B20 sensor and verifies its presence.\n- `printAddress(byte addr[8])`: Prints the sensor's address in hexadecimal format.\n- `startMeasurementDS18b20()`: Starts a new temperature measurement.\n- `checkBusyDS18B20()`: Checks if the sensor is still busy with the measurement.\n- `getDataDS18B20()`: Retrieves and processes the temperature data once the measurement is complete.\n\n\n## Example Output\n\n    Found device with address: 28:FF:4C:60:92:16:05:5C\n    Sensor is a DS18B20\n    Measurement started\n    Measurement completed\n    getDataDS18B20 execution time: 498 ms\n    Temperature: 22.52 C\n\n\n## How to use\n\n1. Connect the DS18B20 sensor to your Arduino board:\n   - VCC to 3.3V\n   - GND to GND\n   - Data to digital pin 2 (configured as `ONE_WIRE_BUS` in the script)\n   - A pull-up resistor (4.7kΩ) between VCC and Data\n\n2. Install the OneWire library in your Arduino IDE:\n   - Go to **Sketch \u003e Include Library \u003e Manage Libraries...**\n   - Search for **OneWire** and install it (2.3.8)\n\n3. Clone or download this repository, or copy the code.\n4. Open the script in your Arduino IDE.\n5. Upload the script to your Arduino board.\n6. Enjoy\n\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fpeff74%2FDallas_ds18b20_non_blocking\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Fdallas_ds18b20_non_blocking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeff74%2Fdallas_ds18b20_non_blocking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Fdallas_ds18b20_non_blocking/lists"}