I assume you have pull-ups on the input pin.