Did my comparator break?
If your Arduino is reading both states, 0 and 1, your comparator may be OK. The problem is your inputs. They should not be "~0.5 volts". Instead, try a circuit like this







simulate this circuit &ndash; Schematic created using CircuitLab