Using a timer would allow the code to continue to flow. My only concern would be that the robot is driving forward and looking in a different direction, and runs into an obstacle. I notice that most of the panning ping sensor robots look forward, stop when they encounter an obstacle, then scan left and right to choose which way to proceed. With three sensors, you can keep moving.