   digitalWrite(13,HIGH);
 }
 void setup(){
+  state gestureState = idle;
   Wire.begin();
   mpu.initialize();
   mpu.dmpInitialize();

  int ringFingerReading = analogRead(A2);
  ringRelax = relax(ringFingerReading);
  /* data acquisition code end*/
  
  /*
  Tmp=Wire.read()<<8|Wire.read();  // 0x41 (TEMP_OUT_H) & 0x42 (TEMP_OUT_L)

  AcX=Wire.read()<<8|Wire.read();  // 0x3B (ACCEL_XOUT_H) & 0x3C (ACCEL_XOUT_L)     
  AcY=Wire.read()<<8|Wire.read();  // 0x3D (ACCEL_YOUT_H) & 0x3E (ACCEL_YOUT_L)
  AcZ=Wire.read()<<8|Wire.read();  // 0x3F (ACCEL_ZOUT_H) & 0x40 (ACCEL_ZOUT_L)
  accel_X_reading = (int16_t)0.99 * accel_X_reading + (int16_t)0.01 * AcX; //LPF here, check if this works since float is involved
  
  int indexFingerReading = analogRead(A0);
  indexRelax = relax(indexFingerReading);
  int middleFingerReading = analogRead(A1);
