//Program blocking rate
const int potPin = A0;
const int ledPin = 9;
int potVal = 0;
void setup() {
// put your setup code here, to run once;
pinMode(ledPin, OUTPUT);
}
void loop() {
// put your maiin code here, to run repeatedly;
potVal = analogRead(potPin);
digitalWrite(ledPin, HIGH);
delay(potVal);
digitalWrite(ledPin, LOW);
delay(potVal);
}