Use Infrared Sensors to Detect Differences in Color

By placing the dual infrared sensors underneath RiQ, you can program it to follow a thick black line!