     buttons[i]=processButton(delay, i);
     switch(buttons[i]){
     case normal_click:
-      Serial.print("Click normal de ");
-      Serial.println(i);
+      //Serial.print("Click normal de ");
+      //Serial.println(i);
       break;
     case long_click:
-      Serial.print("Click fuerte de ");
-      Serial.println(i);
+      //Serial.print("Click fuerte de ");
+      //Serial.println(i);
       break;
     case no_click:
       break;
     }
 
     //comprobamos flexores
-    if((flexs[i]-deadFlexion) > 0){
-      flexorActived[i]=true;  
-    }
-    else{
+    if((flexs[i]<=(initialPosition[i]-deadFlexion))
+        || (flexs[i]>=(initialPosition[i]+deadFlexion))  ){
+      flexorActived[i]=true; 
+      //Serial.print("Flexor ");
+      //Serial.print(i);
+      //Serial.print(" activado: ");
+      //Serial.println(flexs[i]);
+    }else{
       flexorActived[i]=false;
+      //Serial.print("Flexor ");
+      //Serial.print(i);
+      //Serial.print(" desactivado: ");
+      //Serial.println(flexs[i]);
     }
   }
 }

    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;
