   while(1) { // reduces jitter
 
   //DEBUG
-//  if(mic_or_zxy_state==0){
-////    Serial.print("Microphone running");
-//  }else if(mic_or_zxy_state==1) {
-////    Serial.print("VibrationX running");
-//  }else if(mic_or_zxy_state==2){
-////    Serial.print("VibrationY running");
-//  }else{
-////    Serial.print("VibrationZ running");
-//  }
+  if(is_microphone==true){
+    Serial.print("Microphone running");
+  }else{
+    Serial.print("Vibration running");
+  }
   
     
     cli();  // UDRE interrupt slows this way down on arduino1.0

#include <FFT.h> // include the library
//#include <prescaler.h>

int digitalSelectPin = 2;
int digitalSleepPin = 3;


// Define various ADC prescaler variables
const unsigned char PS_32_i = 0xe5; //Chosen Prescaler -> 32

int peak_power[FFT_N/2];

//State Data
boolean is_microphone = true;
int down_sampling_counter = 0;
int down_sampling_rate = 1;

//Print Variables
String data_string = "";

///////////////////////////////////////////////////SETUP////////////////////////////////////////////////////////
void setup() {
  mySerial.begin(4800);
  
 //Pins aren't really needed since we are referencing the ADC MUX directly
//  pinMode(sensorZ, INPUT);
//  pinMode(sensorY, INPUT);
//  pinMode(sensorX, INPUT);
  
  pinMode(digitalSelectPin, OUTPUT);
  digitalWrite(digitalSelectPin, LOW); //Set to HIGH for 6G sensitivity, OR LOW for 1.5G sensitivity
  digitalWrite(digitalSleepPin, HIGH);
  Serial.begin(4800); // use the serial port
  TIMSK0 = 0; //Reduces jitter
  ADCSRA = PS_32_i; //Set Prescaler Value
  ADMUX = 0x40; // use adc0
