// Analog read
// Read analog voltage using analogRead command
int readPin=A3;
readVal;
float V2=0;
int delayTime=500;
void setup() {
// put your setup code here, to run once:
pinMode(readPin , INPUT);
Serial.begin(9600); // Baud rate bit/s = 9600
}
void loop() {
// put your main code here, to run repeatedly:
readVal=analogRead(readPin); // Analog read doesnot read actual voltage but it read scale value of it but it read number between 0 and 1023
V2=(5./1023.)*readVal; // formula juist like we did earlier in analogWrite() //
serial.println(V2);
delay(delayTime);
}