This circuit regulates the output voltage of a 78xx according to the light incident on the sensor. The resistor can be 270 ohms, the potentiometer is 10k and the sensor is an LDR. The transistor may be the BC548. The circuit is from an old technical documentation. In this circuit, increasing the light decreases the voltage.