 
 Thread fsrThread = Thread(); // For measuring Pressure data in other thread
 
-int countFSRThread = 0;
 int count_0 = 0;
 int count_1 = 0;
 int count_2 = 0;
-int count_3 = 0;    
-
-int initPosture_0;
-int initPosture_1;
-int initPosture_2;
-int initPosture_3;
-
-float percentage = 0.25; 
+int count_3 = 0;
+int count_4 = 0;
+int count_5 = 0;   
 
 //  Mosfet channel
 int MOSFET_C1 = 10;


// Runnable for fsrThread
void readPressure(){
  countFSRThread++;
  int frontRight = analogRead(PRESSURE_0)*5;
  int frontLeft = analogRead(PRESSURE_1)*5;
  int backRight = analogRead(PRESSURE_2)*5;
  int backLeft = analogRead(PRESSURE_3)*5;
  Serial.println("0 : "+ String(frontRight));
  Serial.println("1 : "+ String(frontLeft));
  Serial.println("2 : "+ String(backRight));
  Serial.println("3 : "+ String(backLeft));
  
  if(countFSRThread <= 5){
    initPosture_0 = frontRight;
    initPosture_1 = frontLeft;
    initPosture_2 = backRight;
    initPosture_3 = backLeft;
  }else{
    // 자세 측정 및 알람
    Serial.println("your initial post : "+String(initPosture_0));
    // send 'posture msg' to android
    if(frontRight>initPosture_0*(percentage+1)){
      count_0++;
      if(count_0 >= 5){
        BTSerial.println("fr");
        count_0 = 0;
      }
    }else{
      count_0 = 0;
    }  
  }
}

void readTmp(){
    digitalWrite(MOSFET_C1,HIGH);
    Serial.println("temperature on");  
}


  }else if(response.equals(FSR_OFF)){
    Serial.println(response);
    fsrThread.enabled = false;

    count_0 = 0;
    count_1 = 0;
    count_2 = 0;
