Tilt Switch A small metal ball rolls inside the can, and the electrical switch opens or closes based on its position. Detects coarse orientation.