Updated robot.py with code to control an HC-SR04 sensor