int Pin = 8;
void setup() {
// put your setup code here, to run once:
pinMode(Pin , OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int analog = analogRead(A0);
digitalWrite(Pin, HIGH);
delay(analog);
digitalWrite(Pin, LOW);
delay(analog);
Serial.println(analog);
}