int pH_Value;
float Voltage;
void setup()
{
Serial.begin(9600);
pinMode(pH_Value, INPUT);
}
void loop()
{
pH_Value = analogRead(A0);
Voltage = pH_Value * (5.0 / 1023.0);
Serial.println(Voltage);
delay(500);
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter