, before it falls silent, as if to say: "I'm more clever than a simple on-off device." Piezo disk S1 may be replaced with a LED if desired, the LED being wired in series with a 1K resistor.
Figure 2 shows how an ordinary reed switch may be converted to close (a "normally closed" switch) when the gate is opened. A continuity tester makes the work easy. Note that many reed switches are delicate, and therefore wires which are soldered to the reed switch should not be flexed at all near the switch. Other types of switches, such as microswitches, may also be used.