// variables
const int pinled = 6;
int delaytime = 5000;
const int pinled1 = 11;
int delaytime1 = 1000;
const int pinled2 = 9;
int pinpot = A5;

void setup() {
  // put your setup code here, to run once:
  pinMode(pinled, OUTPUT);
  pinMode(pinpot, INPUT);
  Serial.begin(9600);

}

void loop() {
  // put your main code here, to run repeatedly:
 int lecturaPot = analogRead(pinpot);
 float voltaje = lecturaPot*5.0/1023.0;
 float salida = voltaje*255/5.0;

 Serial.print("El valor del voltaje es");
 Serial.print(salida);
 delay(1000);

}



$abcdeabcde151015202530354045505560fghijfghij