void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
int adc;
int porcentaje;
void loop() {
// put your main code here, to run repeatedly:
adc=analogRead(4);
porcentaje=map(adc,0,4095,0,330);
Serial.print("ADC: ");
Serial.print(adc);
Serial.print(" Milivolts: ");
Serial.println(porcentaje);
delay(100); // this speeds up the simulation
}