Changed the adc value averager to take 10 values and now is set up in a loop so only the constant needs to be changed to work