Building my own recessed door sensors

Why do I want door sensors Door sensors are one of the most useful and underrated sensors in a smart home. They’re cheap, battery life is excellent, and they unlock a surprising number of automation possibilities beyond just “is the door open?” I use door sensors all over the house, they’re handy for all sorts of things, and aren’t limited to doors at all A nursery door that gently turns on a lamp…