  //Set the scaling factor based on the state
  int scaling_factor = 1; //pos * BW_per_pos
   if(mic_or_zxy_state==0){
-    Serial.println(" Microphone Software Serial Test:");
+//    Serial.println(" Microphone Software Serial Test:");
     scaling_factor = 133;
   }else if (mic_or_zxy_state==1){
-    Serial.println(" Vibration SoftwareX Serial Test:");
+//    Serial.println(" Vibration SoftwareX Serial Test:");
     scaling_factor = 7;
   }else if(mic_or_zxy_state==2){
-    Serial.println(" Vibration SoftwareY Serial Test:");
+//    Serial.println(" Vibration SoftwareY Serial Test:");
     scaling_factor = 7;
   }else{
-    Serial.println(" Vibration SoftwareZ Serial Test:");
+//    Serial.println(" Vibration SoftwareZ Serial Test:");
     scaling_factor = 7;
   }
 

          Serial.write(mySerial.read());
      }
      
      mySerial.print(data_string);
//      delay(100);
//      Serial.println (data_string); //If this doesn't print, then you may be having memory issues
//      Serial.println ("Data was sent!");
      delay(100); //Give it some clearance to make sure everything printed (not sure if this is needed)
      data_string = ""; //clear the data string once we've printed it
      
    }else{
      Serial.println("Need to run another time");
    }
}




//////////////////////////////////////////////////////FUNCTIONS/////////////////////////////////////////////////
//void print_fft(){
//    Serial.println("Fourier Transform:");
//    for(int i = 0 ; i < FFT_N/2; i++){
//      Serial.print(fft_log_out[i]);
//      Serial.print(",");
//    }
//    Serial.println("");
//}
//
//void print_peaks(){ 
//    Serial.println("3dB Bandwidth:");
//    for(int i = 0 ; i < FFT_N/2; i++){
//      Serial.print(peak_power[i]);
//      Serial.print(",");
//    }
//    Serial.println("");
//}
//
//void print_max_peaks(){
// int scaling_factor = 1; //pos * BW_per_pos
//  if(mic_or_zxy_state==0){
//    Serial.println("Microphone Peaks At:");
//    scaling_factor = 133;
//  }else if(mic_or_zxy_state==1){
//    Serial.println("VibrationX Sensor Peaks At:");
//    scaling_factor = 7;
//  }else if(mic_or_zxy_state==2){
//    Serial.println("VibrationY Sensor Peaks At:");
//    scaling_factor = 7;
//  }else{
//    Serial.println("VibrationZ Sensor Peaks At:");
//    scaling_factor = 7;
//  }
// 
//    for(int i = 0 ; i < number_of_peaks; i++){
//      if(biggest_peaks[i]!=0){
//      Serial.print((biggest_peaks[i]+1)*scaling_factor); //Print out the frequency
//      }else{
//          Serial.print(0);
//      }
//      Serial.print(",");
//      Serial.print(peak_power[biggest_peaks[i]]); //Print out the power at that peak
//      Serial.print(",");
//    }
//    Serial.println("");
//}

void find_peaks(){
  //Initialize peak arrays
