CTL_STATUS_t ctl_humidity_sensor_measure(CTL_HUMIDITY_SENSOR_t *self, float *humidity, float *temperature);
ctl_humidity_sensor_measure samples the humidity sensor self and reports the relative humidity in percent to humidity and the temperature in degrees Celsius to temperature. If the humidity sensor is not capable of sampling temperature, the temperature is substituted with NaN to indicate to the client that temperature measurement is not possible.
Both humidity and temperature can be null pointers indicating that the particular measurement is not required.
ctl_humidity_sensor_measure returns a standard status code. If the status indicates an error, the returned sample data is undefined.
ctl_humidity_sensor_measure is thread-safe if the method measure is thread-safe. Typically, for SPI and I2C transports, you ensure thread safety by associating a mutex with the bus used by the transport.