The Door and Window sensor is great for securing anything that opens or closes. Two pieces (Transmitter and Magnet) are placed parallel next to each other and will report an open signal when the pieces are separated more than ¾”.
Select the image that matches your sensor.