A magnetic switch is used for monitoring the status of automation components. They detect the approach of a magnet without contact and above a certain switching value, they put out a digital signal.
Read More:- https://schunk.com/in/en/gripp....ing-systems/sensors/