Hi,
I am an Automation/PLC Engineer with 10 years of experience in teaching, designing, programming, and field works. Though I'm new to this online freelancing jobs. I am very willing to help you solve this problem and teach you few logic/techniques to solve simple PLC problem like this one.
Please don't hesitate to contact me so we can discuss more how I can help you. I will be available on your preferred time.
Thanks and be blessed.