Timing IR readings using 20 samples each