Figure 1 shows how an SPDT sensor can be used to control two loads. The loads can be relays, solenoids, motors, or any other circuit. For more information, review previous articles describing how SPST switches can be used to control many functions of motors, relays, and other loads.
Figure 1 - Controlling two loads.