The Arduino Uno is connected to a RGB color sensor (e.g., TCS3200 or similar). The sensor reads the color values and sends them over serial communication to a Python script running on your computer.
Source Code Documentation (https://github.com/harshitroy2605/2_level_security_arduini-python/tree/master and https://www.youtube.com/watch?v=x1D7QbnZIGU) Source code ...
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana