#define pinLED 19
const int pinPotensio = 34;
void setup() {
Serial.begin(9600);
pinMode(pinLED, OUTPUT);
}
void loop() {
int dataPotensio = analogRead(pinPotensio);
int mapData = map(dataPotensio, 0, 1023, 0, 255);
analogWrite(pinLED, mapData);
Serial.println(dataPotensio);
Serial.println(mapData);
delay(200);
}