fix led light on distance and reduce average to 5 seconds