Do you need isolation or anticipate large common mode voltages between the two loops?
if he need isolation, can Use linear optical coupling