RGB code Problem

Move all the code inside the Serial.available() conditional.
Think what happens to "value"