Installing a door jamb switch