using a variable to store an analog pin number

Analog pins don't need pinMode. Just use, for example, analogRead(A0).

Pete

1 Like