This document describes a simple circuit using an LM324N operational amplifier configured as a comparator. The circuit compares the voltage at pin 3 to a reference voltage derived from the voltage divider formed by R1 and R7, and outputs a logic high or low at pin 2 depending on whether the input voltage is above or below the reference voltage.