Automatic Coop Door using photo resistor - a hail mary

Top schematic is hardware only.

Bottom schematic, no sketch, the software is very simple.
Monitor the LDR, toggle D3 as needed.

RTC could be added.