 
 
 //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

  //segun si estoy mirando flexor o presion
  if(typeSensor == FLEXOR){
    valueSensor = analogRead(flexSensorPin[sensor]);
    valueFinal = map(valueSensor, minimumSensorFlex, maximumSensorFlex, minimumFlex, maximumFlex);

  }
  else if(typeSensor == PRESSURE){
    int sensorButton=sensor+1;
    valueFinal = analogRead(pressureSensorPin[sensorButton]);
  }

  return valueFinal;
