NEED HELP to Program a Batching System

As AWOL said, we might help you to solve an issue in your code or give suggestions to improve. But might not able to create a whole system for you. See the post #4.

As you said you are a beginner, don't you think it's better to start with small code base and experiment with each functionality. For e.g.

  • Write code to switch on/off relays.
  • Deal with number pads.
  • Experiment with weight sensors.

Once you are good with the above experiments and tracer code, it will be easy to create what you really wanted.

I could see that you don't have the basics of programming, worth spending time in understanding C programming language.