   }
   Serial.println(AndroidMessage);
 }
+

  // until there's no next peak for MESSAGE_TIMEOUT samples after last data peak
  int ref_sig_val, value_sig_val;
  char b=0;
  
  // bit-decode loop
  for (int bitpos=0; bitpos < 8; ++bitpos) {
    ref_sig_val = _getNextAudioPeak(MESSAGE_TIMEOUT);

#define MAX_ANDROID_MESSAGE 40
#define SYNC_PEAKS 16
// *** THESE VALUES WILL REQUIRE CALIBRATION ***
#define PEAK_DETECT_THRESH 10
#define CYCLE_RESET_THRESH 8
#define MESSAGE_TIMEOUT 15

int _syncPeaksCyclic[SYNC_PEAKS];
int _syncHead;
