I am not a freeancer but a small company. We are doing specially design for applications and small machinery. For your task I recomend small PLC like S7 1200 or any other similar. I can provide you code for PLC, or send already prepared PLC with software inside, I count 2 working days for your request. If you are interested, just let me know and we can discous it more closely. Have a nice day. Pavel Jedlicka