1int sensorPin =A5;// select the input pin for the sensor2int ledPin =13;// select the pin for the LED3int sensorValue =0;// variable to store the value coming from the sensor45voidsetup(){6// declare the ledPin as an OUTPUT:7pinMode(ledPin,OUTPUT);8}910voidloop(){11// read the value from the sensor:12 sensorValue =analogRead(sensorPin);13// turn the ledPin on14digitalWrite(ledPin,HIGH);15// stop the program for <sensorValue> milliseconds:16delay(sensorValue);17// turn the ledPin off:18digitalWrite(ledPin,LOW);19// stop the program for for <sensorValue> milliseconds:20delay(sensorValue);21}