   digitalWrite(digitalSelectPin, HIGH); //Set to HIGH for 6G sensitivity, OR LOW for 1.5G sensitivity
   digitalWrite(digitalSleepPin, HIGH);
   Serial.begin(115200); // use the serial port
-  TIMSK0 = 0; // turn off timer0 for lower jitter - delay() and millis() killed
-  ADCSRA = 0xe7; // set the adc to free running mode // This is the default -> 229 or 0xe5
+  TIMSK0 = 0; //Reduces jitter
+  ADCSRA = PS_32_i; //HERE!!!!!!
+  
   ADMUX = 0x40; // use adc0
   DIDR0 = 0x01; // turn off the digital input for adc0
 }

String data;

int sampling_freq_hz = 200;
int millisecond_delay = 16; //This should be the same as 1000 / 200;
int microsecond_delay = millisecond_delay * 1000;
//int sampling_period_ms = 1000 / sampling_freq_hz;

void setup() {
    // declare the ledPin as an OUTPUT:

//  sensorY = analogRead(sensorY_pin);
//  sensorX = analogRead(sensorX_pin);
    cli();  // UDRE interrupt slows this way down on arduino1.0
    for (int i = 0 ; i < 2 * FFT_N; i += 2) { // save 256 samples
      while(!(ADCSRA & 0x10)); // wait for adc to be ready -> Checking bit 4
      
      ADCSRA = PS_32_c; // restart adc // HERE!!!!!!
      
      byte m = ADCL; // fetch adc data
      byte j = ADCH;
      int k = (j << 8) | m; // form into an int
      k -= 0x0200; // form into a signed int
      k <<= 6; // form into a 16b signed int

      if(down_sampling_counter % down_sampling_rate == 0)
      {
      fft_input[i] = k; // put real data into even bins
      fft_input[i+1] = 0; // set odd bins to 0
      } else{
        i-=2;
      }
      down_sampling_counter++;
//      delay(1);
    }
    
    // window data, then reorder, then run, then take output
    fft_window(); // window the data for better frequency response
    fft_reorder(); // reorder the data before doing the fft
    fft_run(); // process the data in the fft
    fft_mag_log(); // take the output of the fft
    sei(); // turn interrupts back on
    
    Serial.println("Fourier Transform:");
    for(int i = 0 ; i < FFT_N/2; i++){
      Serial.print(fft_log_out[i]);
      Serial.print(",");
    }
    Serial.println("");

//delay(2000);

//When TIMSK0 is on: 
delay(120000);

//    delay(500000); 
  }
//  if (millis() - lastPrintTime >= delayInMillis) {
