   byte sunrise_dt_c_calc = CKSUM_SECRET ^ sunrise_dt_v0;
   sunrise_dt_c_calc ^= sunrise_dt_v1;
 
-  int eepromSuccess = 0x00;
-  
-  //int precalc_sunrise_c = sunrise_dt_c;
+  int eeprom_success = 0x00;
 
   // if checksum mismatch - something went wrong with EEPROM writing. Try to reset 
   if(sunrise_dt_c_calc != sunrise_dt_c){

    digitalWrite(PIN_DOOR_DN, HIGH);
    delay(2);
    digitalWrite(PIN_DOOR_DN, LOW);
    if(hitTop){
      waitForUserResetOpen();
    }
  }

      lcd.setCursor(0, 0);
      lcd.print("Sorry! Have to");
      lcd.setCursor(0, 1);
      if(is_day_time && hit_bottom){
        lcd.print("open");
      } else if(!is_day_time && hit_top){
        lcd.print("close");
      }
      lcd.print(" Door.");
    } else {
      lcd.clear();
      lcd.setCursor(0, 0);
      if(is_day_time && hit_bottom){
        lcd.print("Opening");
      } else if(!is_day_time && hit_top){
        lcd.print("Closing");
      }
      lcd.print(" door");
    }
  }
  // finally, open or close the door
  if(is_day_time && hit_bottom){
    openDoor();
    hit_bottom = false;
  } else if(!is_day_time && hit_top){
    closeDoor();
    hit_top = false;
  }
  
}
