Skip to content

Commit

Permalink
fix intervals for sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Nov 16, 2023
1 parent 1deff2a commit fe11513
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/PM1006_test/PM1006_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void loop() {

if (! aqi.read(&data)) {
Serial.println("Could not read from PM1006 sensor");
delay(10000); // try again in a bit!
delay(5000); // Sample every 5 seconds
return;
}
Serial.println("AQI reading success");
Expand All @@ -66,7 +66,6 @@ void loop() {
Serial.println(F("---------------------------------------"));
Serial.print(F("PM 1.0: ")); Serial.print(data.pm25_env);
Serial.println(F("---------------------------------------"));


delay(1000);
delay(20000); // Wait 20 seconds and get another reading from the IKEA Vindriktning
}

0 comments on commit fe11513

Please sign in to comment.