The ESP32 keeps finding new jobs in my house.
I didn't expect to love it, and it has a learning curve, but the possibilities are endless.
Door sensors detect door position (i.e., open or closed) based on the precise gap between the magnet and the reed switch.