htu21d.h File Reference

HTU21D Temperature and Humidity Sensor. More...

#include "kubos-hal/i2c.h"
#include "kubos-core/modules/sensors/sensors.h"

Go to the source code of this file.

Functions

KSensorStatus htu21d_setup (void)
 Setup the I2C interface for talking with the HTU21D. More...
 
KSensorStatus htu21d_read_temperature (float *temp)
 Sends temperature command and reads back temperature data. More...
 
KSensorStatus htu21d_read_humidity (float *hum)
 Sends humidity command and reads back humidity data. More...
 
KSensorStatus htu21d_reset (void)
 Sends reset command which powers sensor off and on again. More...