by Tom Igoe

These examples illustrate how to filter out noise from sensor readings in software in a variety of ways.

The first method here uses Averaging and finding the median

The second takes a Weighted Average to smooth the values out and eliminate noisiness.