A window detector circuit, also called window comparator circuit or dual edge limit detector circuit is used to determine whether an unknown input is between two precise reference threshold voltages. It employs two comparators to detect over-voltage or under-voltage condition.
This circuit utilizes two comparators in parallel to determine if a signal is between two reference voltages. If the signal is within the window, the output is low thus RELAY is in off condition and also LED is off. Relay provides normally ON and normally OFF switch. If the signal level is outside of the window, the output is high and Relay is in ON condition. For this design, the reference voltages are generated with help of two Trimmer potentiometer. One pot used to set the high voltage level and another one to set the low level voltage adjust. LM358 op-amp used as comparator, it circuit works with 12V DC supply and consumes 50mA current when Relay is in ON state.
Window Comparator – Window Detector with relay output – [Link]