diff --git a/examples/OutdoorAirQuality/OutdoorAirQuality.ino b/examples/OutdoorAirQuality/OutdoorAirQuality.ino index 49412df..7083a5a 100644 --- a/examples/OutdoorAirQuality/OutdoorAirQuality.ino +++ b/examples/OutdoorAirQuality/OutdoorAirQuality.ino @@ -40,7 +40,8 @@ void setup() { // Enable outdoor air quality sensor (disabled by default) // Please note that it may take some time for the sensor to deliver the first data - outdoorAirQualitySensor.setMode(OutdoorAirQualitySensorMode::outdoorAirQuality); + // Use setEnabled(true, true) make the change persistent + outdoorAirQualitySensor.setEnabled(true); displaySensorData(outdoorAirQualitySensor); // Optionally disable the sensor