 
 //global internally used
 int8_t  maxC = 125, minC = -125;
-volatile uint8_t tempLimitPotValue = 0; //these values vary, use when set
-volatile uint8_t humLimitPotValue = 0;  //these values vary, use when set
+uint8_t tempLimitPotValue = 0; //these values vary, use when set
+uint8_t humLimitPotValue = 0;  //these values vary, use when set
 uint8_t buttonState = LOW;
 uint8_t alertLevel  = 30; //alert level for temp stored from tempLimitPotValue
 uint8_t humLevel    = 80; //alert level for humidy stored from humLimitPotValue
 uint8_t updateValuesCntr = 0;
-unsigned long lastTimeReadValues = 0;
+volatile unsigned long lastTimeReadValues = 0;
 
 // Setup a oneWire instance to communicate with any OneWire devices
 OneWire oneWire(DALLAS_ONE_WIRE);

}

void displaySetup() {
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("T:");


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