This circuit uses an LM339 and was found in the July 1995 Electronics Now magazine. The LED lights up when the voltage at the potentiometer cursor reaches the value of the divider formed by the resistors.