// 22.11.4562 - Muhammad Guido Augusta
void setup() {
// put your setup code here, to run once:
pinMode(3, OUTPUT);
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int value = analogRead(A0);
int pwm = map(value,0,1023,0,255);
analogWrite(3, pwm);
}