In this example the magnet is positioned along the axis of the reed switch. As the magnet moves left to right it will enter the first lobe on the left and close the contacts. As the magnet is withdrawn, moving back to the left, the contacts will open.