Newbie's first code: Sensor smoothing in 762 bytes