int valorpote;
int valorled;
#define led 2
#define pote A5
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
valorpote = analogRead(pote);
valorled = map(valorpote,0,1023,0,255);
digitalWrite(led,valorled);
Serial.print(valorpote);
Serial.print(" & ");
Serial.println(valorled);
}