A motor is used to feed an object to the camera chamber.
The controller circuit consists of a camera attached to it that detects color of a small object in front of it. | The system uses raspberry pi connected to a controller circuit to achieve this task.
The Raspberry Pi Noir camera module V2 (Pi camera, Raspberry Pi foundation, Cambridge, UK) could sens e visible and NIR light and was widely available at a low price.