 }
 
 void recordSerial() {
+  if (buttonMarker==1) {
+    Serial.println("<------------>");
+  }
   Serial.print(state);
   Serial.print("    ");
   Serial.print(analogvalue);

int lastpublish=0;         // gives time of last publish
int publishthreshold=5000; // the min time that must pass between publishes
int sdlastrecord=0;        // the last time we recorded to an SD card
int sdrecthreshold=1000;   // the amount of time that needs to pass between SD card recordings
File myFile;               // this is our SD card file variable

//SYSTEM_THREAD(ENABLED);

    int y = getVibration();

    if (feedbackConfig==1) {
      analogWrite(vibPin,y);
    }

    if (serialConfig==1) {
