switched to timer to get more consistent number of measurements per reading