if (temperature < Min_Temp) { Seconds = 0; digitalWrite(Green_LED, HIGH); digitalWrite(Blue_LED, LOW); digitalWrite(Red_LED,LOW); }else if(temperature >Min_Temp && temperature < Max_Temp) { digitalWrite(Green_LED,LOW); digitalWrite(Blue_LED,HIGH); digitalWrite(Red_LED,LOW); microsA = millis(); Seconds = (microsA /1000); }else if(temperature > Max_Temp) { Seconds = 0; digitalWrite(Green_LED,LOW); digitalWrite(Blue_LED,LOW); digitalWrite(Red_LED,HIGH); } lcd.setCursor(0, 1); lcd.print("Time:"); lcd.setCursor(5,1); lcd.print(Seconds); delay(500);
if (temperature < Min_Temp) { .... }else if(temperature < Max_Temp) { .... }else { .... }
startMillis = 0; blah, blah, blah; Timer = TimeValue - startMillis; print (Timer);
Serial.Print(Seconds)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)