This is a variable-duty-cycle oscillator in which the sensor acts only within the width or separation of the pulses, according to whether you use a PNP transistor or an NPN device and invert the diode.
Figure 1 - Light/temperature controlled oscillator.