To protect our Raspberry Pi from high voltages that could damage it, we'll need a relay.
To protect our Raspberry Pi from high voltages that could damage it, we'll need a relay. A relay is essentially a switch that can handle high currents and voltages so that the RPi doesn’t have to.