Suspect I have the wrong voltage on the output of the comparator (it seems to just grab the supply voltage which would be too high for the arduino. Have I fried it? Let's hope not.