Quoted from HighVoltage:Question for you, on your diagram you mention keep an eye out for a follow up better version
The diagram was a 'work in progress' and the first few versions in post #1 were unfinished/incomplete. In Januari 2017 I made the final corrections and all previous versions were deleted from post #1.
Quoted from PinballManiac40:Do you have power and ground on the U16?
That is important to know.
The LM339 needs besides an INPUT, also a reference input (+5V) and power supply, (+12V and GND), check all those pins on U16