Fixed timing/averaging bugs in Sensors.*