This circuit uses two NAND gates of a 7400 TTL IC. The position of the contacts determines whether the output of the circuit goes to the high or low logic level.
If the circuit is intended to drive high-power loads, a transistorized stage such as the ones described in other articles in this section must be used.
Figure 1 - TTL circuit for an SPDT sensor.