         return;
     }
     
-    if(!stopBreathFlag) {
-        while(mySerial.read() > 0);
+    char ch = mySerial.read();
+    if(!started) {
+        if(ch == startCodes[index]) {
+            if(++index == sizeof(startCodes)) {
+                started = true;
+                PLAY_SOUND();
+            }
+        } else {
+            index = 0;
+        }
+    } else {
+        if(!stopBreathFlag) {
+            while(mySerial.read() > 0);
+        }
+        protocolHandler(ch);
     }
-    
-    char cmd = mySerial.read();
-    protocolHandler(cmd);
 }
 
 void loop()

int brightness = 0;
int breathType = BREATH_IN;
bool stopBreathFlag = true;

void setup()
{
