 				newState = IN_STEPPER;
 			else if (!strcmp(input,"MESURE"))
 				newState = SENSOR_MESURE;
+			else if (!strcmp(input,"SCAN"))
+				newState = IN_SCAN_PARAMETERS;
 			break;
 
 		case IN_SERVO:

				while (!(input = userInput(NULL)));
			value = atoi(input);
			stepperCommand(value);
			newState = IN_CMD;
			break;


	IN_CMD,
	IN_SERVO,
	IN_STEPPER,
	IN_SCAN_PARAMETERS,
	SENSOR_MESURE
};

