We need to see the code and the wiring. This sounds like missing pullup or pulldown resistors but could easily be something else.
We need to see the code and the wiring. This sounds like missing pullup or pulldown resistors but could easily be something else.