Is it possible that when the color sensor detects yellow or white paper it directly computes the weight of the yellow papers and white papers? What sensor can we use? Since the treatment in recycling a yellow paper and white are different.
As for color, I would suggest reflected light and a color sensor that could vary from something as simple as a color filter and photo detector (e.g., two detectors and a filter on one or a single detector and a chopped beam) or as complex as some imaging system.