It seems as though there is an issue referencing the analog pins using A0, A1, ... When using the analogRead function I have to reference A0 using "0". Please advise if this is the correct behaviour and why?
The analog pins can only be read using analogRead() with simple numerical values. So to read analog pin 0 you use analogRead(0). If you try to use analogRead(A0) it will not work. This is because A0 is defined as pin 64 which is the digitalRead () pin equivalent.