Do you have portA configured as digital? do you have a pullup/pulldown resistor on your input pin?