This is the color detector / sensor circuit diagram. This circuit will sense eight colors that are: green, red and…