       platePid.compute();
       fridgePid.compute();
      if(millis()-lastTimeReadStableState>= intervalReadStableState){
-      if(buttonAmb.value - 1.8 <= tAmb.value && buttonAmb.value + 0.8 >= tAmb.value && buttonPlate.value - 0.8 <= tPlate.value && buttonPlate.value + 1.0 >= tPlate.value){
+      if(buttonAmb.value - 1.6 <= tAmb.value && buttonAmb.value + 0.8 >= tAmb.value && buttonPlate.value - 0.8 <= tPlate.value && buttonPlate.value + 1.0 >= tPlate.value){
         counterStableState++;
       }
        else{

      break;

    case STATE::SELECTIONMODE://inseriamo un rct er 20,10,0 e -10 
      if(millis()-lastTimeReadStableState>= 500){
        tAmb.checkChange();
        tPlate.checkChange(); //NORMAL, RCTIDLE, RCTAMBTEMPSELECTION, RCTMESURE
  
        //cambiare la modalità
        if(stateMode==STATEMODE::NORMAL || stateMode == STATEMODE::RCTIDLE || stateMode == STATEMODE::MESURESETUP)
          if(btnPUP.getState() == Button::STATE::DOWN || btnPDOWN.getState() == Button::STATE::DOWN){
            lcd.clear();
            switch(stateMode){
              case STATEMODE::NORMAL: stateMode = STATEMODE::RCTIDLE; break;
              case STATEMODE::RCTIDLE: stateMode = STATEMODE::MESURESETUP; break;
              case STATEMODE::MESURESETUP: stateMode = STATEMODE::NORMAL; break;
            }
          }
  
        switch(stateMode){
            case STATEMODE::MESURE: 
              if(btnAUP.getState() == Button::STATE::DOWN || btnADOWN.getState() == Button::STATE::DOWN){
              
              if(buttonAmb.value -10 <= -20)


      statics1.newVal(outputPlate);

      if(counterRCT>=NUMOFRCTMEASURE){
          if(counterRCTCycle>=NUMMEASUREMENT){
            if(stateMode==STATEMODE::MEASURE){
             writeRCT0(totalRCT.average(counterRCTCycle));
            }
            stato=STATE::END;
