{"id":20349475,"url":"https://github.com/y252328/sht1x","last_synced_at":"2026-05-07T21:44:19.057Z","repository":{"id":129678063,"uuid":"236190307","full_name":"y252328/SHT1x","owner":"y252328","description":"Arduino library support for Sensorion SHT1x(SHT10, SHT11, SHT15) all command.","archived":false,"fork":false,"pushed_at":"2020-01-26T12:17:19.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T23:40:03.302Z","etag":null,"topics":["arduino","crc8","humidity-sensor","sht1x","temperature-sensor"],"latest_commit_sha":null,"homepage":"","language":"C++","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/y252328.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","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-01-25T15:45:13.000Z","updated_at":"2020-06-23T07:39:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7098542-c109-4192-a7f6-f1e27732d23c","html_url":"https://github.com/y252328/SHT1x","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y252328%2FSHT1x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y252328%2FSHT1x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y252328%2FSHT1x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y252328%2FSHT1x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y252328","download_url":"https://codeload.github.com/y252328/SHT1x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241878204,"owners_count":20035567,"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":["arduino","crc8","humidity-sensor","sht1x","temperature-sensor"],"created_at":"2024-11-14T22:26:00.785Z","updated_at":"2026-05-07T21:44:14.016Z","avatar_url":"https://github.com/y252328.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SHT1x Temperature / Humidity Sensor Library for Arduino\nCopyright 2020 Chih-Yu Hsiang \u003cy252328@gmail.com\u003e \\\nCopyright 2009 Jonathan Oxer jon@oxer.com.au / http://www.practicalarduino.com  \\\nCopyright 2008 Maurice Ribble ribblem@yahoo.com / http://www.glacialwanderer.com\n\nThis repository is based on [practicalarduino/SHT1x](https://github.com/practicalarduino/SHT1x) and fully support all commands of sht1x. \n\nProvides a simple interface to the SHT1x series (SHT10, SHT11, SHT15)\nand SHT7x series (SHT71, SHT75) temperature / humidity sensors from\nSensirion, http://www.sensirion.com. These sensors use a \"2-wire\"\ncommunications buss that is similar to I2C and can co-exist on the same\nphysical wire as I2C devices.\n\n## Installation\nDownload the directory \"SHT1x\" and move it into the \"libraries\"\ndirectory inside your sketchbook directory, then restart the Arduino\nIDE. You will then see it listed under File-\u003eExamples-\u003eSHT1x.\n\n## Usage\nThe library is instantiated as an object with methods. \nInclude it in your sketch and then create an object, specifying the pins to use for communication with the sensor and initial it:\n``` c++\n#include \u003cSHT1x.h\u003e\n#define dataPin 10\n#define clockPin 11\nSHT1x sht1x(dataPin, clockPin);\nsht1x.init();\n```\n\nYou can then call methods on that object within your program. In this\nexample we created an object called \"sht1x\", but it could have been\ncalled whatever you like. A simple example program is included with\nthe library and can be accessed from the File-\u003eExamples-\u003eSHT1x menu.\n\n### Read Temperature\n\nThe `readTemperature()` method returns a float within the valid range of the sensor of -40 to +123.8C (-40 to +254.9F).\nA value of -40 is returned in the event of a communication error with\nthe sensor.\n\nExample:\n```c++\n// read temperature and covert to degree Celsius\nfloat tempC = sht1x.readTemperature(TempUnit::C); \n\n// read temperature and covert to degree Fahrenheit\nfloat tempF = sht1x.readTemperature(TempUnit::F);\n```\n\n### Read Humidity\n\nThe `readHumidity()` method returns a float within the valid range of the sensor of 0 to 100%.\nA negative value is returned in the event of a communication error with\nthe sensor.\n\nExample:\n```c++\nfloat humidity = sht1x.readHumidity();\n```\n\n### Connection Reset\nIf communication with the device is lost the `connectionReset()` method\n can reset the serial interface.\n (interface only)\n\nExample:\n```c++\nsht1x.connectionReset(); \n```\n\n### Soft Reset\nThe `softReset()` method can\nresets the interface, clears the\nstatus register to default values.\n\nExample:\n```c++\nsht1x.softReset(); \n```\n\n### Read Status Register\nThe `readStatusReg()` method will read status register from sht1x\nand return it.\n\nExample:\n```c++\nauto reg_value = sht1x.readStatusReg(); \n```\n\n### Write Status Register\nThe `writeStatusReg()` method will write value to sht1x status register.\n\nExample:\n```c++\nsht1x.readStatusReg(value); \n```\n\n### CRC\nThis library support CRC-8. In default, the CRC is used, but it can be disabled via the argument.\n\nExample:\n```c++\n// read temperature without CRC\nfloat tempC = sht1x.readTemperature(TempUnit::C, false); \n\n// read humidity without CRC\nfloat humidity = sht1x.readHumidity(false);\n\n// read status register without CRC\nfloat humidity = sht1x.readStatusReg(false);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy252328%2Fsht1x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy252328%2Fsht1x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy252328%2Fsht1x/lists"}