The circuit shown is a Light Activated Switch
For Dark Activated Switch just interchange the Inverting an Non-Inverting terminals of Op-Amp
To see the working vary the Potentiometer with voltage divider
Actually the Voltage divider is formed by an LDR an 4.7K resistor
For Sensitivity Very the other potentiometer