I want my processor to change rotation as items move in and out. When an item is entering the processor, it should turn to the Input port, and when the item is exiting, it should turn to the Output port. How can I implement this functionality? Thank you for your assistance。