design a circuit to sort a product which has 2 different color in two diffrenet boxes for example red and green apples no any microcontroller or microprossser are allowed. which color sensor is the best to have 5 volt output so a solenoid may work and take each certain volt (color) to a place.