We all want our chickens to be safe at night so that’s where creativity pops up. There’s work to be done.
The first design was based on an arduino nano with an LDR but tat was not accurate.
On github I found an unfinished sketch where Dusk2Dawn library was used. I’ve used this as a base to start building.