Arduino Programming – Map and smooth values
Learn how to use the Arduino map() function to change a variable number from one range to another. Also check the other example on how to smooth Analog Input values by taking multiple samples and average those.