DFRobot Magnetic Contact Switch Sensor for Arduino consists of two magnetic reeds composed of iron and nickel. The sensor is sealed in a plastic case. The two magnetic reeds are overlapped but there is a small gap between them. When a suitable external magnetic field comes within 2cm, the two magnetic reeds will contact and conduct, sensing the change in the position of the object.