Mounting bracket for Zigbee-based Sonoff door sensor. These are printed for the garden door, which I often forget to lock. The sensor and magnets are inserted into their respective pockets, which are then taped over to hold them in place and provide a weather shield. I use M4 wood screws for mounting, as shown in the pictures.
I use the Zigbee sensors with the Home Assistant to notify me when the door is open. I can also see the status of the door on the HA dashboard.