   humLimitPotValue = map(tempAnalogReadVal, 0, 1023, 20, 100); // Map the values from 20 to 100%
 }
 
-void readValues(unsigned long currentMillis, bool isInitial)
-{
-  if (state == STATE_SETUP || (((currentMillis-lastTimeReadValues) < READINTERVAL) && !isInitial)){
+void readValues(unsigned long currentMillis, bool forced)
+{
+  if (state == STATE_SETUP || (((currentMillis-lastTimeReadValues) < READINTERVAL) && !forced)){
     return;
   }
   LOG_DEBUGLN("Reading values...");


  //read values, especially potentiometer values, incase of restart
  readValues(0,true);
  alertLevel = tempLimitPotValue;
  humLevel = humLimitPotValue;



  if (state == STATE_SETUP) {
    stateSetup();
  }else{
    stateWorking();
  }
}
