Hi
What happens if you short the button out as it may be faulty. The circuit shown will keep the input high which is why you see 1 until the switch is closed. If the switch isn't working then it will remain at 1.
Can you add a picture of the wiring to the switch? How many connections does it have?
Cheers
Paul