RaspberryPi project for controlling a power switch