   //segun si estoy mirando flexor o presion
   if(typeSensor == FLEXOR){
     valueSensor = analogRead(flexSensorPin[sensor]);
-    //Serial.print("Flexor: ");
-    //Serial.println(valueSensor);
     valueFinal = map(valueSensor, minimumSensorFlex, maximumSensorFlex, minimumFlex, maximumFlex);
-    //Serial.print("Flexor process: ");
-    //Serial.println(valueFinal);
 
   }
   else if(typeSensor == PRESSURE){
     int sensorButton=sensor+1;
-    valueSensor = analogRead(pressureSensorPin[sensorButton]);
-    valueFinal = valueSensor;
+    valueFinal = analogRead(pressureSensorPin[sensorButton]);
   }
 
   return valueFinal;

void loop(){
  readState();
  processState(millis()-timer);
  //processCommands();
  timer=millis();
  nextState();
}







    flexs[i] = 0;
    maxPressures[i]=false;
    pressures[i] = 0;
    initialPosition[i]=map(analogRead(flexSensorPin[i]), 
                            minimumSensorFlex, maximumSensorFlex, 
                            minimumFlex, maximumFlex);
  }

  //copio los valores al previous
