int PinEntrada = 34; 
int Pinled = 4;
int sensor = 0;
int lectura = 0;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
}
void loop() {
  // put your main code here, to run repeatedly:
lectura = analogRead(PinEntrada);
sensor = map(lectura, 0,4095,0,255);
Serial.print(lectura);
Serial.print(",");
Serial.println(sensor);
analogWrite(Pinled,sensor);
delay(1000);
}