     Serial.print("Sunrise: ");
     Serial.print((int) sunrise[tl_hour]);
     Serial.print(":");
-    Serial.println((int) sunrise[tl_minute]);
-    int delta_mins;
+    Serial.print((int) sunrise[tl_minute]);
+    byte delta_mins;
     if(!is_day_time){
       if(evening){
         // get total mins including minutes before midnight

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

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

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

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

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