What's wrong with my schematic?

I did not follow the links to your pictures (you can host them here).

But it sounds like you have a floating input.
A pull-up resistor is a common fix.