This circuit, from Texas Instruments documentation, fires a relay when light strikes the phototransistor. Any phototransistor can be used, and the power can be supplied with 6 or 12 V depending on the relay. The 1 k resistor can be changed to modify the sensitivity.