ESP32 component for the Si7021 sensor, for use with the ESP-IDF build framework.
The ESP32 is a versatile little IoT SoC device that can handle a number of microcontroller tasks for automation and other projects. This component allows the ESP32 to talk with an Si7021 temperature and humidity sensor over the I2C bus.
The use of this component is straightfoward. If the I2C bus in use has not already been initialized, you'll need to call si7021_init()
. Otherwise, you'll mostly be interested in si7021_read_temperature()
and si7021_read_humidity()
both of which return floating point temperature values.