     lcd.setCursor(0, 0);
     lcd.print("Keeping door ");
     lcd.setCursor(0, 1);
-    if(isDayTime && hitBottom){
+    if(is_day_time && hit_bottom){
       lcd.print("open");
-    } else if(!isDayTime && hitTop){
+    } else if(!is_day_time && hit_top){
       lcd.print("close");
     }
     lcd.print("Press btn");

  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Door will ");
  if(isDayTime && hitBottom){
    lcd.print("open");
  } else if(!isDayTime && hitTop){
    lcd.print("close");
  }
  lcd.setCursor(0, 1);

    Serial.print(":");
    Serial.println((int) sunrise[tl_minute]);
    int delta_mins;
    if(!is_day_time){
      if(evening){
        // get total mins including minutes before midnight
        delta_mins = (24 - now.hour() + sunrise[tl_hour]) * 60 + (sunrise[tl_minute] + (60-now.minute()));
