Obstacle avoidance not working properly

The sensor works fine but the rover does not stop in front of obstacles. Here I put some bin logs of both ardurover 4.0 and 4.1 beta