4.25. Humidity/Temperature Sensor Module

4.25.1. Module Files

4.25.1.1. Driver

  • src/app/driver/htsen/htsen.c

  • src/app/driver/htsen/htsen.h

4.25.1.2. Unit Test

  • tests/unit/app/driver/htsen/test_htsen.c

4.25.2. Detailed Description

The driver addresses the Sensirion SHT35-DIS I2C humidity/temperature sensor.

It triggers a humidity and temperature measurement and reads the result. It checks the read CRC value: if it does not match the one that the driver computes, the measurement value is discarded. The result is stored in the corresponding database entry. The driver does not use clock stretching to avoid problems on the I2C bus.