Project - Arduino to know the difference between 2 objects

What about placing a different colour label on bottom of food & water things and using a colour detector.