 
 
 //values of the flex sensor
-const int minimumSensorFlex = 10;
-const int maximumSensorFlex = 40;
+const int minimumSensorFlex = 0;
+const int maximumSensorFlex = 45;
 //values which will use with the flex sensor
 const int minimumFlex = 0;
 const int maximumFlex = 100;
 //dead zone flexion
 const int deadFlexion=20;
+int initialPosition[DEDOS];
 
 //values of the pressure sensor
 const int minimumSensorPressure = 10;

    flexs[i] = 0;
    maxPressures[i]=false;
    pressures[i] = 0;
  }

  //copio los valores al previous

void loop(){
  readState();
  processState(millis()-timer);
  Serial.println();
  //processCommands();
  timer=millis();
  nextState();
  delay(2000);
}






