This circuit triggers a relay when light strikes a sensor. The sensitivity is adjusted in the potentiometer. Equivalent operational comparators and amplifiers can be used. The supply voltage must be according to the relay.

1900702025_113200