 #include <Me_InfraredReceiver.h>
 #include <Me_UltrasonicSensor.h>
 #include "MakeblockStepper.h"
+#include <AccelStepper.h>
 #include <Servo.h>
 #include <Me_ServoDriver.h>
 

#define STATE_LOWER_TOP_FLAP 5
#define STATE_RELEASE_FLAP 6
#define STATE_RAISE_TOP_FLAP 7
#define STATE_MOVE_ITEM_OUT 8

int fsmState;


      Serial.println( "stopMicroSwitch = ");
      Serial.println( stopMicroSwitch );
      delay( 200 );
      if ( usDistance < 10 && stopMicroSwitch == HIGH ) {
        moveItemStepper.step( 100 );
        fsmState = STATE_MOVE_ITEM_IN;
      }
      break;
      
    case STATE_MOVE_ITEM_IN:
      Serial.println( "MOVE ITEM IN" );
      Serial.println( "usDistance = ");
      Serial.println( usDistance );
      Serial.println( "stopMicroSwitch = ");
      Serial.println( stopMicroSwitch );
      if ( stopMicroSwitch == HIGH ) {
        moveItemStepper.step( 100 );
        fsmState = STATE_MOVE_ITEM_IN;
      } else if ( stopMicroSwitch == LOW ) {
        fsmState = STATE_PULL_BACK_FLAP;
