I have a radio controlled chicken door that I control through home assistant via a hack rf. It has a reed switch placed behind the door, and a magnet attached to the door to let you know door status, with failure stating "open".
And then a reminder sent to my phone 10 minutes past dusk to shut the door, if it is still open at that time.
It's rigged but the confirmation is nice.
Edit: most of sensors run by esp32 boards running esphome. Also include a temp sensor etc, fed into home assistant