What sort of gap would there be? If fairly tight like a door/window in your home then you can just weatherproof a standard contact sensor yourself. Otherwise you might need something that allows for a larger gap like the one pictured You would attach the leads to a Zwave/Zigbee sensor that supports an external device