Was wondering what the best way to go about detecting color, and I don't mean of an object, I'd like to be able to detect when a light source is a certain color from a distance, such as the status of a distance traffic light with a μC. Any ideas on how I could go about doing this? Searched around and found a tiny bit of information about using colored LED's as photodiodes but don't know if this would work at longer distances. Not sure the best way to implement this so any help would be appreciated thanks.