Circuit which includes a thermistor-resistor combination to compensate for temperature fluctuations by supplying input voltage to light-emitting diode, maintains constant light output. Similar circuits can be used for temperature-induced variations in photodiode applications