Hast du den Pin offen, ohne PullUp, dann floatet der Eingang da er sehr hochohmig ist.