   return temperature;
 }
 
-bool isAtLeastOneButtonPressed(){
-
-  int upPressed = digitalRead(PIN_BUTTON_UP);
+bool isMiddleButtonPressed(){
+
   int enterPressed = digitalRead(PIN_BUTTON_ENTER);
-  int downPressed = digitalRead(PIN_BUTTON_DOWN);
-
-  if(upPressed == LOW || enterPressed == LOW || downPressed == LOW){
+
+  if(enterPressed == LOW){
 
     static unsigned long lastPressedTime = 0;
     unsigned long currentTime = millis();

}

void updateDisplayBackLightSettingsForCertainModes(){
  if(isAtLeastOneButtonPressed()){
    isBacklightAlwaysOn = !isBacklightAlwaysOn; 
    changeDisplayBacklight(isBacklightAlwaysOn); 
  }

    
  }

  if(isMiddleButtonPressed()){
    return STATE_WINDOW_BEFORE;
  }

