#define pi 3.1416
float analogValue = 0;
float integratedValue = 0;
float h = 0.01;
float voltage = 0;
void setup() {
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
analogValue = analogRead(A0);
voltage = (analogValue * 3.3 / 4095.0) - 1.65;
integratedValue += voltage * h;
Serial.println(integratedValue);
delay(500);
}