void setup() {
// put your setup code here, to run once:
pinMode(3, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int a= analogRead(A5);
int val=map(a, 0,1023,0,255);
Serial.println(val);
analogWrite(3,val);
}