Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 714 Bytes

Si7021 - Temperature & Humidity Sensor

The Si7021 device provides temperature and humidity sensor readings with an I2C interface.

Sensor Image


I2cConnectionSettings settings = new I2cConnectionSettings(1, Si7021.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);

using (Si7021 sensor = new Si7021(device, Resolution.Resolution1))
    // opne heater
    sensor.Heater = true;
    // read revision
    byte revision = sensor.Revision;
    // read temperature
    double temperature = sensor.Temperature.Celsius;
    // read humidity
    double humidity = sensor.Humidity;


You can’t perform that action at this time.