   //today =  {now.second(), now.minute(), now.hour(), now.day(), now.month(), now.year() } ;
   // check if it is time to open the door
 
+  byte today[6];
+
+
   now = rtc.now();
   today[0] = now.second();
   today[1] = now.minute();


Encoder encoder(PIN_ENC_A, PIN_ENC_B, PIN_ENC_BTN);

float const LATITUDE = -42.9166667;
float const LONGITUDE = 147.3333282;

byte today[6];
byte sunrise[6];
byte sunset[6];

// process logic booleans
bool is_day_time = false;
bool door_open = false;
bool in_setup_menu = false;
bool in_pre_delay_menu = false;
bool in_post_delay_menu = false;
bool set_delay_value = false;
bool hit_bottom = false;
bool hit_top = false;
bool couldnt_close_door = false;
bool couldnt_open_door = false;

unsigned int delay_time_before_sunrise;
unsigned int delay_time_after_sunset;


/* Read EEPROM settings

    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: ");
