int value;
int LED = 6;
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
value = analogRead(A0);
value = map(value,0,1023,0,255);
analogWrite(LED , value);
Serial.print("value: ");
delay(500);
Serial
}