 }
 
 void sendLSMData(float data[]){
-  mySend("x"+(String)data[0]);
-  mySend("y"+(String)data[1]);
-  mySend("z"+(String)data[2]);
+  mySend((String)data[0]+" "+(String)data[1]+" "+(String)data[2]+" "+ (String)mode);
 }
 
 void comBegin(int speed){

}

unsigned long previousProcess=0;
unsigned long sendInterval=100;
void processData(){
  if((millis()-previousProcess)>sendInterval){
    float data[6];

boolean comAvailable(){
  boolean value;
  if(isBT){
    value=BT.available();
  }
  else{
    value=Serial.available();
