Automatic Coop Door using photo resistor - a hail mary

DH12043:
but i would not use it for something that will need to run for more than 49 days because it will make the code more complex due to the fact that millis() will become to large and will need to be reset.

Bullsh*t. Do a little research. Learn about subtraction of 'unsigned long' variables. As long as you don't need to time a single event for more than 49 days, millis() is just fine. Sounds like here the largest possible event length will be 24 hours.