Circuit setup for sensor control of mains power supply

Circuit setup for sensor control of mains power supply. This stage shows the circuit with a physical switch that allows a current from one source (9v battery) flip a relay and supply a higher current from another source (mains AC power adapter plugged into the mains socket). A 5v input from a digital pin can be used to switch on a device powered by an electrical mains power supply.