Just checking if I'm missed something regarding this part which looks like it's out of spec or not working at all.
The relevant bits, the datasheet says it has a 3.5mV input offset (max) and a -0.2 to +0.2v common input range.
With a 5v vdd, 140mV reference and a low frequency signal which clearly rises and falls below this always receive a pull down at the output.
LMV393TP-SR 3PEAK | Amplifiers/Comparators - LCSC Electronics
LMV393TP-SR 3PEAK $0.1343 - SOIC-8 Comparators ROHS datasheet, price, inventory C97672
lcsc.com
The relevant bits, the datasheet says it has a 3.5mV input offset (max) and a -0.2 to +0.2v common input range.
With a 5v vdd, 140mV reference and a low frequency signal which clearly rises and falls below this always receive a pull down at the output.