Hello guys! Its my first time trying out for Blynk. Originally i have the code below:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 250V):
float voltage = sensorValue * (500.0 / 1024.0);
// print out the value you read:
Serial.print(“AC Voltage: “);
Serial.print(voltage);
Serial.println(” Volts”);
delay(100);
}
Now, i want the value of “voltage” to appear in the GRAPH widget. This is my first time to use Blynk.
kindly guide me. I would appreciate help. Thanks