 
 void setup(){
   
-  Serial.begin(2400);
+  Serial.begin(800);
   xl.begin(10);                   // Setup SPI protocol, issue device soft reset
   xl.beginMeasure();              // Switch ADXL362 to measure mode  
-	
-  Serial.println("ReAudioguide touch + accelero: test dei sensori");
 }
 
 void loop(){

  
  if(XValue > 1100 || XValue < -1100) {
    if(statoplay != 8){
      Serial.write(8); //Pausa,
      //Serial.print("\n PAUSA "); 
      statoplay = 8; // ex statoplay
      traccia = 0;
    }
  }else{
     if((statoplay != 9)&&(XValue < 600 && XValue > -600)){
       Serial.write(9); //Play,
       //Serial.print("\n PLAY ");
       statoplay=9; // ex statoplay
       traccia = 0;
     } 
  }
  if(YValue > 500) {
    if(YValue > 1200) {
      if(stato != 12){
         Serial.write(12); //Rewind,
         //Serial.print("\n REWIND ");
         stato=12;
      }
    }else{
      if(stato == 12){
        if(YValue < 700) {
          Serial.write(9); //Play,
          //Serial.print("\n PLAY ");
          stato=0;
        }
      }

  
   if(sensorValue2 > threshold){
     if(traccia != 2){
       Serial.write(2); //Play the second track: Ordine basso della facciata,
       traccia = 2;
     }
  }
  if(sensorValue > threshold) {
    if(traccia != 1){
     Serial.write(1); //Play the first track: Piazza,
     traccia = 1;
    }
  }
