I need to construct a circuit for a robot, so it can follow a red line. I'm thinking of using something like this http://www.instructables.com/id/Color-Detection-Using-RGB-LED/ , but switch out the RGB with a green LED and no microcontroller, only for one light color. I am wondering if this would work. And if I need a comparator?