 #include <SoftwareSerial.h>
+#include <Thread.h>
 #define PPR_ON "a"
 #define PPR_OFF "b"
 #define FSR_ON "c"
 #define FSR_OFF "d"
 #define TMP_ON "e"
 #define TMP_OFF "f"
+
+Thread fsrThread = Thread(); // For measuring Pressure data in other thread
 
 //  Mosfet
 int MOSFET_C1 = 6;

  pinMode(INB,OUTPUT); 
  pinMode(MOSFET_C1, OUTPUT);
  pinMode(MOSFET_C2, OUTPUT);
}

void loop() {

  }
  
  if(isFSROn){
    fsrThread.enabled = true;
    if(fsrThread.shouldRun())
    fsrThread.run();
  }else{
    fsrThread.enabled = false;
  }
}

// Runnable for fsrThread
void readPressure(){
  int fsrData = analogRead(PRESSURE);
  Serial.println("Pressure : "+ String(fsrData));
  BTSerial.println(fsrData);
}

void readTmp(){
