The software used to program the robot uses the two IR sensors to determine how the robot should move based on its readings from the floor. in the begining section of the program, the components have been initialized, the location of the pins for each component as well as their respective pin modes.
In the loop function of the program, The digital readings of the IR sensors are assigned to their respective variables and a series of if and if-else statements are shown here, which when entered will cause the robot to either move forward, right, left, or come to a full stop.