a switch for providing signals indicating the position of a rotary shaft has an enclosed switch chamber . within the chamber is at least one magnetically actuated switch device . a switch actuating magnet is mounted in a holder exterior of the chamber and coupled to the switch through a wall of the switch housing . the holder is flexibly mounted to the housing and connected to the rotary shaft . the magnet is held in a constant rotational plane with respect to the switch .