float r1 = 2.50;
void setup() {
Serial.begin(115200);
}
void loop() {
float b1voltage=0;
float realbat=0;
float volbat1=0;
volbat1 = analogRead(34);
realbat= volbat1 * 3.3/4095;
b1voltage = realbat*r1;
Serial.print("bat1: ");
Serial.println(b1voltage);
delay(2000);
}