Smoothing function for arduino.

The arduino input pins are not very clean sensor inputs. I used this code to take an array of sensor readings, remove the top/bottom 15% outliers, and take an average of the remainder. This doesn’t work as well as proper hardware grounding/isolation but it was surprisingly effective.