Pin A6 and A7

A6 and A7 are 100% analog only pins and they are only available onboards with the surface mount version of the ATmega328.

Don't try to treat them as digital inputs.