Week 15 was dedicated to finish the sensor and movement idea. The way it works is that two tilt sensors are used to control the balance of the segway. If one sensor is tilted a certain way the motors will spin one direction and vice versa if the other sensor is tilted. A video people demonstrates this concept.
Video: