void setup()
{
Serial.begin(9600);
pinMode(A2,INPUT); // not required when using analog input
pinMode(A9,INPUT); // not required when using analog input
}
void loop()
{
int current1 = analogRead(A2);
int current2 = analogRead(A7); // changed A9 to A7
float voltage1 = float(current1) * (5.0/1023.0); // changed to 'float'
float voltage2 = float(current2) * (5.0/1023.0); // changed to 'float'
Serial.print("Poti_1 ");
Serial.print(voltage1); // changed for both on same line
Serial.print(", Poti_2 "); // changed for both on same line
Serial.println(voltage2);
delay (1000);
}