Color Detector ?

This is how to use an LED as a sensor:-
http://www.thebox.myzen.co.uk/Workshop/LED_Sensing.html