Hello BradtheRad,
Thank you for the reply, sorry I only drew one diode, but I plan on using two diodes, which will make it 1.4 V. I am using the Schmitt trigger comparator for the interface design. It's better to use comparators than opamps for converting the analog signal into a digital signal, because opamps are sloppy when used as a comparator because they get saturated when over driven which may cause it to recover slowly. However opamps can be effective when used for low frequency inputs. I will try the interface with opamps too and analyze the output of the circuit performance. Why do we need a pull up resistor when the VDD (+5v) is applied to the supply pin of the comparator? Is it because of the positive feedback due to which some of the output is fed back and the output decreases?