The pins cannot "just hover", the pullup resistors would prevent this (if they are actually connected to those pins). The code looks OK. To check whether the pins might have been damaged, configure them as GPIO outputs and toggle them.
↧