Basic comparator circuit. As soon as the voltage applied to the negative input of the OP Amp is higher then the voltage applied to the positive input the output goes into negative saturation. Is the positive input higher then the negative then output goes into positive saturation end the LED lights up.
Cheers