Overview

Driver for a Sensirion SHT1x humidity and temperature sensor.

Resources

All correct at time of writing, but as always, manufacturers love to move things around on their website.

Web page

http://www.sensirion.com/en/products/humidity-temperature/

Datasheet

http://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/Humidity/Sensirion_Humidity_SHT1x_Datasheet_V5.pdf

Test hardware

This code has been tested using a Parallax SHT11 breakout module:

Parallax SHT1x Sensor

This was wired to a CoreProto and plugged into a SenseCore:

http://soldercore.com/products/sensecore/

And finally installed on a SolderCore:

http://soldercore.com/products/soldercore/

API Summary

Constants
SHT1X_HIGH_RESOLUTION High resolution mode
SHT1X_LOW_RESOLUTION Low resolution mode
Initialization
sht1x_initialize Initialize SHT1x sensor
sht1x_set_resolution Select measurement resolution
sht1x_set_supply_voltage Set supply voltage for compensation
Measurement
sht1x_read_linear_humidity Read linear humidity
sht1x_read_temperature Read supply-compensated temperature
sht1x_read_true_humidity Read temperature-compensated true humidity
Utility
sht1x_read_raw_humidity Read raw humidity ADC
sht1x_read_raw_temperature Read raw temperature ADC
sht1x_read_status Read sensor STATUS register
sht1x_soft_reset Soft-reset sensor
sht1x_write_status Write sensor STATUS register