How can use 4-20mA 24Vdc input to get a digital output for led display? I want help to realize program
Connect a resistor of 250ohm between the 4-20mA line and GND. Now you converted it to a 1-5V line which you can read with the ADC.
Note the 24V bit is only the maximum voltage you will get as the output tries to drive a current proportional to the output. If you do not use the resistor you will fry your analogue input.