Based on Firmata's analog example, limits analog reads to 50ms intervals and smooths results