Driver for a Sensirion SHT2x humidity and temperature sensor.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
This code has been tested using a Love Electronics SHT21 breakout module:
This was plugged into a SenseCore:
And finally installed on a SolderCore:
|SHT2x_I2C_ADDR||SHT2x 8-bit I2C address|
|SHT2x_RESOLUTION_t||Sensor resolution encoding|
|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|