31class Si7021 :
public ThermHygroMeter {
37 float value = TEMPERATURE_NOT_AVAILABLE;
38 value = sensor.readTemperature();
41 value = TEMPERATURE_NOT_AVAILABLE;
48 float value = HUMIDITY_NOT_AVAILABLE;
49 value = sensor.readHumidity();
52 value = HUMIDITY_NOT_AVAILABLE;
61 Serial.print(F(
"Found model "));
62 switch (sensor.getModel()) {
63 case SI_Engineering_Samples:
64 Serial.print(F(
"SI engineering samples"));
67 Serial.print(F(
"Si7013"));
70 Serial.print(F(
"Si7020"));
73 Serial.print(F(
"Si7021"));
77 Serial.print(F(
"Unknown"));
80 channel.setNewValue(getTemp(), getHumi());
84 ::Adafruit_Si7021 sensor;