If you use pinMode(A7, INPUT); then you are trying to configure as a digital pin which it can't be so don't do it
pinMode(A7, INPUT);