const int led= 13;
const int potentio = 15;
int sensorValue = 0;

void setup() {
  pinMode(led, OUTPUT);
  pinMode(sensorValue, INPUT);
  Serial.begin(9600);
}

void loop() {
  sensorValue = analogRead(potentio);
  Serial.println(sensorValue);
  digitalWrite(led, HIGH);
  delay(sensorValue);
  digitalWrite(led, LOW);
  delay(sensorValue);
}