Using Serial imput to run a code

Here is my code:

MM_Sorter_shift_toggle_servo_count5.ino (9.64 KB)