     digitalWrite(INB,LOW);
   }else if(response.equals(FSR_ON)){
     Serial.println(response);
-    isFSROn= true;
+    fsrThread.enabled = true;
   }else if(response.equals(FSR_OFF)){
     Serial.println(response);
-    isFSROn= false;
+    fsrThread.enabled = false;
   }else if(response.equals(TMP_ON)){
     Serial.println(response);
     isTMPOn = true;

int PRESSURE = A0; 
int TEMPERATURE = A1;

bool isFSROn = false;
bool isTMPOn = false;

int MAX_TMP;

    readTmp();
  }
  
  if(fsrThread.shouldRun())
    fsrThread.run();
}

// Runnable for fsrThread
