Light Activated Switch Circuit with delay
This connection of the capacitor will result in feedback (hysteresis) delay.  And the switch will start falsely reacting to light from D1.

It is better to use series RC circuit in the base of transistor Q2.
This will cause a delay in turning on or off.







simulate this circuit &ndash; Schematic created using CircuitLab