heads Up!! we made a big mistake on a project!! Check your resistance value. If DC Supply is 24V & your 2 WIre Txer requires typically 12V then your leftover budget is only 12V for cable loss and measuring resistor. So be sure you don't go too high for measuring resistance value. 250ohm or 500 ohm max.
We thought to be clever and use 1Kohm and realised later mistake.