Thanks to everyone for the help. I am not sure why, but moving the 10K to ground does not work.

With the 10K to the input the circuit works, but it is inconsistant which I think may be due to noise.