int lectura;
int dato;
void setup() {
Serial.begin(9600); // put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
lectura = analogRead(A0);
dato = map(lectura,0,1023,0,255);
Serial.print("Valor de lectura: ");
Serial.print(lectura);
Serial.print(" ");
Serial.print("dato map ");
Serial.print(" ");
Serial.println(dato);
delay(500);
}