const int led = 4;
const int potenciometro = 2;
int pot = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(led, OUTPUT);
pinMode(potenciometro, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
pot = analogRead(potenciometro);
Serial.println(pot);
delay(10); // this speeds up the simulation
}