Write a Python program on the Raspberry Pi to control the servo motor and the ultrasonic sensor. Write a Python program on the Raspberry Pi to verify if the ultrasonic sensor is working correctly. With the ultrasonic sensor working, write a Python code to make the robot move forward in a straight line until the ultrasonic sensor is within about 10 cm. It should then stop, make a 180-degree turn, and head back to its starting position.