         val = Serial.read();
         if(val == '>'){
             currentlyReading = true;
-            Serial.println("Reading engaged");
         }
-       
         if(val == ','){
              current++;
-         }
-         if(val == ':'){
-           // currentlyReading = false;
-         //   Serial.println("Reading disengaged");
-           current = 0;
+        }
+        if(val == ':'){
+             current = 0;
         }
         if(currentlyReading == true){
-           
+            if(val == '0'){
+                vals[current] = 0;
+            }
             if(val == '1'){
                 vals[current] = map(1, 1, 9, 1, 255);
             }

                vals[current] = map(9, 1, 9, 1, 255);
            }
            
             analogWrite(ledPin, vals[0]);  
             analogWrite(ledPin2, vals[1]);  
             analogWrite(ledPin3, vals[2]);  
      }
      
    }

bool currentlyReading = false;

int result = 0;
int result2 = 0;

int ledPin1 = 11;
int ledPin2 = 10;
int ledPin3 = 9;
int ledPin4 = 6;
int ledPin5 = 3;
int val = 0;   
int vals[5];


int current = 0;
void setup() {
    
    Serial.begin(9600);
    pinMode(ledPin1, OUTPUT);
    
   
}
