The circuit`s threshold is set by resistor R2. When the intensity of the light falling on the LDR is lowered, resistance of
that unit increases, and lowers the voltage applied to the inverting input of the 741. The reference voltage at the noninverting input of the 741 is set (via R2) so that the comparator switches from low to high when the light falling on the LDR is reduced. That high activates transistor Ql, which causes the relay contacts to close.