BillMurphy: Is 5 volts the maximum you can connect to a pin being used as an input?
Yes.
Perchance read the datasheet?