I build the tutorial robot yesterday and it worked perfectly. I wanted to test it again to day.
The robot should drive forwards untill it comes against an obstalce. The robot should stop, look to both sides and then pick one side to drive towards. When I tested it out again today, the robot stops immediately, looks to both sides, turns to one side and then only drives half a centimeter before he stops again to look both sides. This keeps repeating and repeating even though there is infront of the robot. I directly copied the code from the website.