 
 // 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));
+  Serial.println("frontRight : "+ String(frontRight));
+  Serial.println("frontLeft : "+ String(frontLeft));
+  Serial.println("backRight : "+ String(backRight));
+  Serial.println("backLeft : "+ String(backLeft));
+
     // 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;
-    }  
-  }
+    sendPostureMsg(frontRight,frontLeft,backRight,backLeft);
 }
 
 void readTmp(){
     digitalWrite(MOSFET_C1,HIGH);
     Serial.println("temperature on");  
 }
+void sendPostureMsg(int frontRight,int frontLeft, int backRight, int backLeft){
 
+    if(frontRight>=10 || frontLeft>=10 || backRight>=10 || backLeft>=10){
+      // 왼쪽으로 기울임 : 0
+    if(frontRight<100 && backRight<100){
+        count_0++;
+        if(count_0 >= 5){
+          BTSerial.println("몸을 왼쪽으로 기울이지 마세요!");
+          count_0 = 0;
+        }
+        
+      // 다리꼬기 : 오른쪽 다리 올리기 : 1  
+      }else if(frontRight <100){
+        count_1++;
+        if(count_1 >= 5){
+          BTSerial.println("오른쪽 다리를 꼬지마세요!");
+          count_1 = 0;
+        }
+      }else{
+          count_0 = 0;
+          count_1 = 0;
+      }
+
+    // 오른쪽으로 기울임 : 2
+    if(frontLeft<100 && backLeft<100){
+        count_2++;
+        if(count_2 >= 5){
+          BTSerial.println("몸을 오른쪽으로 기울이지 마세요!");
+          count_2 = 0;
+        }
+        
+      // 다리꼬기 : 왼쪽 다리 올리기 : 3  
+      }else if(frontLeft <100){
+        count_3++;
+        if(count_3 >= 5){
+          BTSerial.println("왼쪽다리를 꼬지마세요!");
+          count_3 = 0;
+        }
+      }else{
+          count_2 = 0;
+          count_3 = 0;
+      }
+      
+    // 발끝 들기 : 4
+    if(frontRight<100  && frontLeft<100){
+        count_4++;
+        if(count_4 >= 5){
+          BTSerial.println("발끝을 들지 마세요!");
+          count_4 = 0;
+        }
+    }else{
+        count_4 = 0;
+    }
+
+    // 엎드리기 && 눕기 : 5
+    if(backRight<100  && backLeft<100){
+        count_5++;
+        if(count_5 >= 5){
+          BTSerial.println("엎드리기거나 눕지 마세요!");
+          count_5 = 0;
+        }
+    }else{
+        count_5 = 0;
+    }
+  }
+}
+  
+


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; 

//  Mosfet channel
int MOSFET_C1 = 10;

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

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