Figure 4: Schematic diagram of the comparator circuit.