about codes for RGB color sensing locker

i am really getting frustrated with this.

i successed in getting the codes in serial monitor and use them to turn servo motor or peizo buzzer

i am trying to get a code which is
(first password is red color)

1)when r g b value is less than 120 nothing happens. (normal at beggining)
2) when g and b values are over 120 buzzerPin starts to beep, when r value is more than 190, green led is on.
3) when that r becomes over 190, save that value into 1.
(2nd password is green color)

loop and do it again,
4) when r or b value becomes over 120, buzzerPin starts to beep, when g value is more than 190, green led is on.
5) when g goes over 190, save that value into 1.

when the value become 2 (1+1), servo motor will turn.

i need help with this thanks

We can’t see your code.