void setup() {
  Serial.begin(115200);
}

void loop() {
  float volts = (5 * (analogRead(A0) / 1024.0));
  if (volts > 0)
  {
    Serial.print(volts);
    Serial.println(" vdc");
    delay(250);
  }
}
Analog SwitchBreakout