I'm tring to mess around with the serial.print function and would like to see the values from a potentiometer. However, I get a compile error 'val' was not declared in this scope.
This seems pretty similar to how they have it on page 59 of prject 4 in Project book but I still can't figure out what im doing incorrectly.
I don't think that would be a problem to use it that way.
I was using the Project Book as a reference point for the last time I did an analogRead.
Thanks for the suggestion on using code tags; as I'm just beginning to learn the Arduino hardware and software, I'm also learning the formatting for this forum.