   } else if(in_post_delay_menu){
     lcd.print("Post: ");
   }
-  lcd.print(delay_val);
+  lcd.print((int)delay_val);
   lcd.print(" mins");
 }
 

  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Closing door");
  int timeoutcount = 0;

  // loop until limit switch is hit  (also add timeout)
  Serial.print("Waiting for door to close");

    Serial.print("Sunset: ");
    Serial.print((int) sunset[tl_hour]);
    Serial.print(":");
    Serial.println((char) sunset[tl_minute]);

    byte delta_mins = (now.hour() * 60 - sunset[tl_hour] * 60) + now.minute() - sunset[tl_minute];

    if(delta_mins > 0){
      Serial.print("Time after sunset: ");
