Backyard chicken coops are the entry point for a huge fraction of new makers. The 'three things people forget' are: closing the door at dusk (a fox shows up the one night you forget), refilling water in summer, and noticing when one chicken hasn't come back to the coop. All three are solvable with $80-150 in commodity parts and an afternoon of wiring.
The core node is an ESP32 — Wi-Fi enabled, sleep current under 100µA, runs a year on a small Li-ion if you only wake every 30 seconds. It controls a 12V linear actuator on the door (the door slides up and down on rails), reads a capacitive water-level sensor, switches a relay for the IR lamp on cold nights, and exposes a small REST API for the dashboard. A USB-powered Pi 4 with a Pi Cam V3 sits in the corner and runs a tiny YOLOv8-nano model to count chickens entering and exiting through the door.
The non-obvious calibration step is dawn/dusk timing. Don't use a fixed schedule — chickens follow actual sunrise/sunset, which drifts ±90 minutes through the year at temperate latitudes. Use a sunrise-sunset library that takes your latitude/longitude and returns today's times, and offset by 15-20 minutes after sunset (give stragglers a chance to come back). Most builds do this with a free API or with the local astronomy library on the ESP32 itself; both work.