When the magnets are together, the circuit conducts electricity; When the magnet is detached, the circuit is not conducting.
eBay