Control of starteer robot

I have started to work with my Makeblock robot again. I have re-installed the default software and tried uploading the following program with a USB cable from my Windows laptop.

2017-07-11 - Makeblock code.png
After removing my USB cable and turning on the Robot, the ultrasonic sensor did not cause the Robot to stop or turn. What am I doing wrong? After solving this problem I want to add other add-on sensors that I have purchased from Makeblock.

Hi boppa,

Do you have a direct link to the program you loaded to your robot ?
We suggest using the factory reset called “Reset Default Program” in mBlock.

Make sure you connected the sensor the the specified port in the user manual as well.

Best regards,