search the min value with arduino

Hi Guys , before everything sorry for my enlish , I'm not very good with but , I'm trying my best

so ...

please I m a beginner on arduino , my project is a color sorting machine like this :

so what i need exactly ?

to add the code which allows the program choosing between three colors frequency value who has the min value of frequency of color and show him name or doing any action

like this :

if ( REDfrequency< GREENfrequency && REDfrequency< BLEUfrequency)

{Serial.println("RED COLOUR");}

this code didn't work I don't Knew why

again sorry for my bad english , if any one want to speak frensh ,,, il ya aucun soucie mon pote ^^

the code
#define S0 4
#define S1 5
#define S2 6
#define S3 7
#define sensorOut 8
int REDfrequency = 0;
int GREENfrequency = 0;
int BLEUfrequency = 0;
void setup() {
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(sensorOut, INPUT);

digitalWrite(S0,HIGH);
digitalWrite(S1,HIGH);

Serial.begin(9600);
}
void loop() {

digitalWrite(S2,LOW);
digitalWrite(S3,LOW);

REDfrequency = pulseIn(sensorOut, LOW);

delay(100);

digitalWrite(S2,LOW);
digitalWrite(S3,HIGH);

BLEUfrequency = pulseIn(sensorOut, LOW);

delay(100);

digitalWrite(S2,HIGH);
digitalWrite(S3,LOW);

GREENfrequency = pulseIn(sensorOut, LOW);

if (int REDfrequency< int GREENfrequency && int REDfrequency< int BLEUfrequency)
{Serial.println("RED COLOUR");}
if ( int BLEUfrequency< int GREENfrequency && int BLEUfrequency< int REDfrequency)
{Serial.println("BLUE COLOUR");}
if ( int GREENfrequency < int BLEUfrequency && int GREENfrequency < int REDfrequency)
{Serial.println("GREEN COLOUR");}
else
{Serial.println("NO COLOUR DETECTION");}
delay(100);

delay(1000);
}

The code didn't work because the code is incomplete.

The forum has a francophone section in the International section.

so what is the complet code ?

The code you have that may compile, but which doesn't work.
In code tags.