   fft_phase(FS, 0, F2, FFT_SIZE, fftBuffer, mag, phase, startIndex, endIndex);
   updatePhase(mag, phase, startIndex, endIndex);
   float hz = FS * _phaseRateAverage / 2 / PI;
-  Serial.print("endIndex: "); Serial.println(endIndex);
-  Serial.print("END_INDEX: "); Serial.println(END_INDEX);
+  // Serial.print("endIndex: "); Serial.println(endIndex);
+  // Serial.print("END_INDEX: "); Serial.println(END_INDEX);
   // Serial.print("BPM: "); Serial.println(hz * 60);
   //Serial.print("radsPerUpdate: "); Serial.println(_phaseRateAverage);
 

    }
    for (int i = 0; i < samplesRead; i++) {
      float newVal = tempBuffer[i];
      acc += newVal;
      numInAcc++;
      if (numInAcc >= ACC_SIZE) {
          float value = acc / ACC_SIZE;
          acc = 0;
          numInAcc = 0;
          //minwave = min(value, minwave);
          //maxwave = max(value, maxwave);
          addToFFT(value);
      }
      // minwave = min(tempBuffer[i], minwave);
      // maxwave = max(tempBuffer[i], maxwave);

      //samples--;
    }

    fftBuffer[i] = fftBuffer[i-1];
  }

  float diff = max(0, windowedVal - prevWindowedVal);
  fftBuffer[0] = diff;
  Serial.print("Diff: "); Serial.println(diff);

  prevWindowedVal = windowedVal;

