 #include <SoftwareSerial.h>
 #include <Thread.h>
+#include <QueueList.h>
+
+QueueList <int> q;
+int sum ;
+int firstVal;
+
 #define PPR_ON "a"
 #define PPR_OFF "b"
 #define FSR_ON "c"


// Runnable for fsrThread
void readPressure(){
  int frontRight = analogRead(PRESSURE_0)*5;
  int frontLeft = analogRead(PRESSURE_1)*5;
  int backRight = analogRead(PRESSURE_2)*5;

#define TMP_OFF "f"

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;
