const int sensorPin = A0;
const int pinLED = 9;
int sensorValue = 0;
void setup() {
// put your setup code here, to run once:
pinMode(pinLED, OUTPUT);
}
int sensor = 0;
int brightness = 0;
void loop() {
// put your main code here, to run repeatedly:
sensorValue = analogRead(sensorPin);
digitalWrite(pinLED, HIGH);
delay(sensorValue);
digitalWrite(pinLED, LOW);
delay(sensorValue);
}