I use a Programmable logic controller (PLC) .Much more robust.A bit more work to get going but in the end worth it .