A Lego Mindstorms robot that uses a colour sensor to follow a black line on the floor.
I learned how sensors work and how to use if-then logic. I also learned patience when fixing bugs!