coop door automatic

Hello
I need help. I need an item for a the coop door. I has to be semilar as the to last pics in the attachments.
I is the thing that makes it possible for the coop door automatic to stop in top at day time and close in night time. It will open and close by a timer.
I hope somebody can help.
Sinc
Jan Rosiak

audino hjælp.pdf (300 KB)

I doubt if I would even use an Arduino for that.

A simple dusk till dawn switch wired correctly to do the opposite.

A simple solar light with the output taken off to the required relay.

Quite a few other methods too.

Hackaday has a few but here is one

Couple more here