+1 for optoisolators.
You don't need to worry about possibly very dangerous ground loops (you do not need to connect the control box GND to the Arduino GND), and all you have to do is get the two individual, independent polarities of each optoisolator correct.