     Serial.print(" Z = ") && Serial.print(z);
     Serial.print(" EMG Ch.1 = ") && Serial.print(emg1);
     Serial.print(" EMG Ch.2 = ") && Serial.print(emg2);
+    Serial.print(" green = ") && Serial.print(green);
     Serial.println();
  }
   }

            byte jelly = Serial1.read();
            infoPk[i] = jelly;
          }
      
  while(emg1 > 500 && emg1 < 1024 && g==0 && emgcounter==0){
    Dynamixel.performMovement(2148, 2048, 2048, OPEN);   //"Initial" position

    //delay(1000);
    Dynamixel.performMovement(1142, 3250, 775, OPEN);     //Ready position
    //delay(1000);
    Dynamixel.performMovement(2148, 2048, 2048, CLOSE);   //"Initial" position
    //delay(1000);
    g++;
    emgcounter--;
