 
 int digitalSelectPin = 2;
 int digitalSleepPin = 3;
-String data;
+
 
 // Define various ADC prescaler variables
 const unsigned char PS_32_i = 0xe5; //Chosen Prescaler -> 32

 //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:");
    scaling_factor = 133;
  }else if (mic_or_zxy_state==1){
    Serial.println(" Vibration SoftwareX Serial Test:");
    scaling_factor = 7;
  }else if(mic_or_zxy_state==2){
    Serial.println(" Vibration SoftwareY Serial Test:");
    scaling_factor = 7;
  }else{
    Serial.println(" Vibration SoftwareZ Serial Test:");
    scaling_factor = 7;
  }




//////////////////////////////////////////////////////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
