   unsigned long timeElapsedSinceStart;
 
   while((timeElapsedSinceStart = (millis() - initialTime)) < INITIAL_SETTLE_TIME){
-    if(isAtLeastOneButtonPressed()){
+    if(isMiddleButtonPressed()){
       break;
     }
     

    
  }

  if(isAtLeastOneButtonPressed()){
    return STATE_WINDOW_BEFORE;
  }


  return temperature;
}

bool isMiddleButtonPressed(){

  int enterPressed = digitalRead(PIN_BUTTON_ENTER);

  if(enterPressed == LOW){

    static unsigned long lastPressedTime = 0;
    unsigned long currentTime = millis();
