void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int ITO = analogRead(A0);
int pwm = map (ITO, 0, 1023, 0, 100);
analogWrite(3, pwm);
Serial.print("Value Analog : ");
Serial.println(ITO);
Serial.print("Value PWM : ");
Serial.println(pwm);
delay(1000);
}