Smoothing analog reading to a single average.

You used the definite article ("the smoothing example") like we're supposed to know what your code looks like.

We don't.