 
 void closeDoor(){
   // send high to door close motor pin
-   digitalWrite(PIN_DOOR_DN, HIGH);
-
+  digitalWrite(PIN_DOOR_DN, HIGH);
+  lcd.setCursor(0, 0);
+  lcd.print("Closing door");
   int timeoutcount = 0;
-  const int TIMEOUT_MAX = 220;
-   
+
   // loop until limit switch is hit  (also add timeout)
   Serial.print("Waiting for door to close");
   while(digitalRead(PIN_LIMSW_DN) == LOW){
-    enterSleep(); // sleep for a few seconds to save power
-    if(f_timer == 1)
-    {
-      f_timer = 0;
-    }
+
+    delay(DELAY_MS);
     timeoutcount++;
     if(timeoutcount > TIMEOUT_MAX){
       Serial.print("\nERROR! door not opening properly. Check limit switch.\n");

    }
  }
  Serial.println();
  
}

void tensDigitLCD(int digit){

#define PULLUP false
#define INVERT false

Button menuButton(PIN_ENC_BTN, PULLUP, INVERT, DEBOUNCE_MS);


#define MENU_COUNT 2

volatile int f_timer=0;

//const int DELAYTIME_SEC = 20;
const int TIMEOUT_MAX = 220;
const int DELAY_MS = 100;
const int MAX_DELAY_MINUTES = 100;
int menuPos = 0;
int delayVal = 0;

RTC_DS1307 rtc;

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
