Current loop, 4 - 20 mA, can be fed through a resistor lower value than 250 Ohm. That gives voltage lower than 5 volt. For a 3.3 volt controller use a resistor value less than 165 Ohm. Controller GND and signal GND of the 24 volt equipment needs to be connected.