This is a Arduino Library for the SHT1x series (SHT10, SHT11, SHT15) temperature / humidity sensors from Sensirion, supporting both V3 and V4 versions. It allows temperature measurements both in Celsius and Fahrenheit degrees, as well as humidity (in percentage).
This library is an expansion of the SHT1x controller provided by Sparkfun. By taping into the status register of the sensor, you now have the ability to switch measurement resolution (supporting 8/12/14 bits data measurements) for increased precision or speed, and even use the sensor's internal heater in the measurements. It also contains an optional CRC-8 checksum calculation to verify data integrity (It's active by default, read below to find out how to disable this feature).
Using preprocessor directives, you can disable some procedures available in the class:
- SHT1X_USE_BITWISE_CRC : Changes CRC-8 checksum calculation from a bytewise (using a lookup table) to a bitwise process;
- SHT1X_NO_SAFEGUARD : Disables SHT1x overheat safeguard procedures (may harm sensor in long-term usage);
- SHT1X_NO_CRC_CHECK : Disables the CRC-8 checksum calculation within the data measurements;
- /src - Source files for the library (.cpp, .h).
- library.properties - General library properties for the Arduino package manager.
- Installing an Arduino Library Guide - Basic information on how to install an Arduino library.
- Code Repository - Main repository
The code is beerware; if you see me at the local, and you've found my code helpful, come buy me a round!
Please use, reuse, and modify these files as you see fit. Please maintain attribution to all contributors and release anything derivative under the same license.
Distributed as-is; no warranty is given.