output a warning '(W)' after the co2 value during the first minute,
if the value is -1 or 410 which seems to happen each time after powering the
board on for a couple of measurements.
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
unsigned long time;
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
unsigned long time;
+unsigned long warmuptime = 60000; // 1 min.
int co2 = 0;
int temp = 0;
int lastppm = 0;
int co2 = 0;
int temp = 0;
int lastppm = 0;
lcd.setCursor(0, 0);
lcd.print("CO2: ");
lcd.print(co2);
lcd.setCursor(0, 0);
lcd.print("CO2: ");
lcd.print(co2);
+ if (time < warmuptime && (co2 == -1 || co2 == 410)) {
+ lcd.print (" (W)");
+ }
lcd.print(" ppm ");
lcd.setCursor(0, 1);
lcd.print("Temp: ");
lcd.print(" ppm ");
lcd.setCursor(0, 1);
lcd.print("Temp: ");