I am trying to make an analog value from 80 to 487 convert into 180 degree values using a map function.
here is my code:
int analogPin = 3; **
** Serial.begin(9600); **
** int val = analogRead(analogPin);
** map(val, 80, 487, 0, 179);**
** Serial.println(val); **
I made it print each value but when I open the Serial Monitor it is not changing the values to degrees. If you know what I did wrong please help. Thanks!