{"id":13802577,"url":"https://github.com/HAIZAKURA/esp-sht3x-micropython","last_synced_at":"2025-05-13T13:32:23.281Z","repository":{"id":134810720,"uuid":"250200031","full_name":"HAIZAKURA/esp-sht3x-micropython","owner":"HAIZAKURA","description":"A SHT3x (SHT30/31/35) Lib for esp8266/esp32 with MicroPython.","archived":false,"fork":false,"pushed_at":"2020-09-19T06:17:34.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-22T13:30:44.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/HAIZAKURA.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}},"created_at":"2020-03-26T08:21:24.000Z","updated_at":"2024-08-04T00:07:26.056Z","dependencies_parsed_at":null,"dependency_job_id":"5b76db61-56ab-4b99-957a-905908faea2b","html_url":"https://github.com/HAIZAKURA/esp-sht3x-micropython","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-sht3x-micropython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-sht3x-micropython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-sht3x-micropython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-sht3x-micropython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HAIZAKURA","download_url":"https://codeload.github.com/HAIZAKURA/esp-sht3x-micropython/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225229873,"owners_count":17441336,"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-08-04T00:01:47.814Z","updated_at":"2024-11-18T18:30:27.425Z","avatar_url":"https://github.com/HAIZAKURA.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"readme":"# esp-sht3x-micropython\n[![Author](https://img.shields.io/badge/Author-HAIZAKURA-b68469?style=flat-square)](https://nya.run) [![License](https://img.shields.io/github/license/HAIZAKURA/esp-sht3x-micropython?style=flat-square)](./LICENSE)\n\nA SHT3x (SHT30/31/35) Lib for esp8266/esp32 with MicroPython.\n\nIf you are using pyboard or another board, please modify the usage of `Pin` and `I2C` in `sht3x.py` .\n\n## Usage\n\n```python\nfrom sht3x import SHT3x_Sensor\n\nsht3x_sensor = SHT3x_Sensor(freq=100000, sdapin=5, sclpin=4)\nmeasure_data = sht3x_sensor.read_temp_humd()\n# measure_data = [22.9759, 73.8277]\n# The default decimal place is 4 digits\ntemp = measure_data[0]\nhumd = measure_data[1]\n\nprint('Temp:', temp)\n# Temp: 22.9759\nprint('Humd:', humd)\n# Humd: 73.8277\n```\n\n## Notice\n\nThe default temperature is Celsius. If you need Fahrenheit, please change it in `sht3x.py` .\n\nJust uncomment the following code.\n\n```python\n# temperature = (315.0 * float(temperature_raw) / 65535.0) - 49\n```\n\nAnd comment the following code.\n\n```python\ntemperature = (175.0 * float(temperature_raw) / 65535.0) - 45\n```\n\nThe `build/sh3x.mpy` is a compiled bytecode file, and only can be used in `MicroPython v1.12+` .\n\n## Author\n\n**esp-sht3x-micropython** © [HAIZAKURA](https://nya.run), Released under the [MIT](./LICENSE) License.\n\n\u003e [Personal Website](https://nya.run) · GitHub [@HAIZAKURA](https://github.com/HAIZAKURA) · Twitter [@haizakura_0v0](https://twitter.com/haizakura_0v0) · Telegram [@haizakura](https://t.me/haizakura)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHAIZAKURA%2Fesp-sht3x-micropython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHAIZAKURA%2Fesp-sht3x-micropython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHAIZAKURA%2Fesp-sht3x-micropython/lists"}