This module, which has a reed relay at its end, changes its contact when it approaches a magnet, as per the working principle of the reed relay, and gives an output from the module's digital pin. It is very easy to use. There are supply pins and digital output pin.