Sounds like you have a floating input how are the buttons wired?
Have you got pull down resistors fitted? If not you need them.
An input not connected to anything will not be a solid zero.
Sounds like you have a floating input how are the buttons wired?
Have you got pull down resistors fitted? If not you need them.
An input not connected to anything will not be a solid zero.