They make several types. FOr your Vacuum, one like you use on a door or window that has 2 parts would work. WHen the door is closed the 2 magnetic contactors are close to each other and when the door opens it breaks the circuit and activates the sensor. What ever brand of alarm system you use...