Overview

Driver for a Sensirion SHT2x 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/humidity-sensor-sht21/

Datasheet

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

Test hardware

This code has been tested using a Love Electronics SHT21 breakout module:

https://www.loveelectronics.co.uk/search?text=sht21

This was plugged into a SenseCore:

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

And finally installed on a SolderCore:

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

API Summary

Macros
SHT2x_I2C_ADDR SHT2x 8-bit I2C address
Types
SHT2x_RESOLUTION_t Sensor resolution encoding
Functions
sht2x_get_resolution Read resolution
sht2x_initialize_i2c Initialize sensor on I2C bus
sht2x_read_user Read user register
sht2x_set_resolution Set sensor resolution
sht2x_write_user Write user register