That’s an expensive sensor to tell you when a tilt (hinged) door opens…
Try below for under $30, and very reliable in wind and cold: