The code below is used to control the motor movements through serial communication. The movement of the motors depends on the location where the user is looking and contains limiting factors such as the potentiometer pins. The PID system is also added here to manage the speed of which the motors turn.