I am posting a circuit diagram of a window comparator circuit driving a relay based on light sensing. LM393N IC i have used. LDR is used as a light sensor. Lower reference is set as 2.58v and upper reference is set as 4.35 volts. As the essential condition for window comparator saturation that Vin should be low than Vlow and Vin should be high than Vupper. The resistive combination of LDR and 10K variable resistor is fed at input. Although i have checked voltage at every pin of IC LM393. Correct voltages are obtained at multimeter . but circuit is not driving relay. I have connected external pull up resistor as well but circuit is not working well.