In this circuit the relay triggers on when light falls onto the sensor, a common LDR. Power supply voltage depends on the relay. You can use sensitive types for 6 or 12 V with coil currents rated to 50 to 100 mA. Sensivity is adjusted by P1.
Light Relay