const int potenciometer = 12;
const int led = 35;
int lectura = 0;
void setup() {
// put your setup code here, to run once:
pinMode(potenciometer, INPUT);
pinMode(led, OUTPUT);
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
lectura = analogRead(potenciometer);
Serial.println("El valor de potenciometro es: ");
Serial.println(lectura);
//Serial.println(potenciometer);
delay(500); // this speeds up the simulation
}