int ledPin = 11;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(11, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int sensorValue = analogRead(A0);
int brightness = sensorValue / 4;
Serial.println(sensorValue);
analogWrite(11, brightness);
delay(1);
}