In electrical engineering a limit switch is a switch operated by the motion of a machine part or presence of an object.
They are used for controlling machinery as part of a control system, as a safety interlocks, or to count objects passing a point.A limit switch is an electromechanical device that consists of an actuator mechanically linked to a set of contacts.