I am completely new to arduino and coding, but I want to make a project where the stepper motor (Nema 17) runs upon pressing a start button, and when the ultrasonic sensor detects something within a certain range the motor will stop and be delayed for a few seconds before resuming.
The goal would be to build a conveyor belt that runs and when an object (lets say a container) is detected, an LED indicator light will turn on, the motor will stop and a valve will let out some fluid to fill up the contianer for a certain amount of time (I assume using a delay), then the motor will continue moving and repeat the loop.
I've already figured out the components and wired the breadboard and and built the conveyor.