The magnetic proximity switches define the position of the piston in cylinders or grippers. When the internal contact is actuated by a magnetic field, the sensors complete an electrical circuit and provide an output signal to actuate directly a solenoid valve or a PLC. A yellow or red LED diode shows when the internal magnetic contact is closed.