Arduino library for getting average from sensor values