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