Reed Relais

The relais works with a reed contact. This reed contact closes the gate if influenced by a magnet. That´s how you can create a proximity switch.