News

The LM339 has an open collector output so the output floats when V+ > V-. You either need to add a 10kΩ pullup resistor to the output or change the Arduino code from “pinMode(11, INPUT);” to ...