This project will use a Reed switch module to detect magnetic field. When the reed module is closing a magnetic iron, the LED in the circuit will turn off.
Step 1: Connect reed module with Arduin as per following circuit graph:

Step 2:Download sample code and load it into Arduin.

Step 3: Run the arduin code and you will see result same as following video:
Demo Video: