How-to · Intermediate · 3 min read
4-20 mA and 0-10 V Signals
Transmitters, Converters and Reading Them with Arduino and ESP32
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
A 4-20 mA loop sends a measurement as current, so it works over long, noisy cables and a broken wire shows as 0 mA. Power the loop (often 24 V), put a precise shunt resistor (250 Ω gives 1 to 5 V) in series and read the voltage with an ADC. A 0-10 V signal needs a voltage divider before a 3.3 V or 5 V input. Isolate where ground loops are likely.
Key specs at a glance
- Current loop
- 4 mA = zero, 20 mA = full scale
- Voltage
- 0-10 V or 1-5 V
- Shunt
- 250 Ω gives 1-5 V; use a 0.1% resistor
- Supply
- Typically 24 V DC for loop power
- Converters
- ADC modules, PWM-to-voltage DAC, RS485 converters
- Isolation
- Recommended for long runs
Why 4-20 mA
Current signals are not affected by cable resistance or most noise, so they work over hundreds of metres. The 4 mA base (a live zero) lets the system tell a sensor reading of zero from a broken wire. Most industrial level, pressure and temperature transmitters use it; see pressure transducers and industrial flow meters.
2-wire, 3-wire and 4-wire
The wiring depends on how the device is powered.
| Type | Wires | Power |
|---|---|---|
| 2-wire loop-powered | 2 | Loop supply provides power and carries the signal |
| 3-wire | 3 | Separate power, shared return |
| 4-wire | 4 | Separate power; active output |
- 2-wire loop-powered
- Wires:
- 2
- Power:
- Loop supply provides power and carries the signal
- 3-wire
- Wires:
- 3
- Power:
- Separate power, shared return
- 4-wire
- Wires:
- 4
- Power:
- Separate power; active output
Reading 4-20 mA with a microcontroller
1. Connect the 24 V supply, the transmitter and a 250 Ω resistor in series. 2. Measure across the resistor; 4 mA gives 1 V and 20 mA gives 5 V. 3. For a 3.3 V ADC use a 150 Ω shunt (0.6 to 3 V) or divide the voltage. 4. Use a precise 16-bit ADC such as the ADS1115 for accuracy; see ADC basics. 5. Scale the reading to engineering units and flag anything under 3.6 mA as a fault. Use the shunt resistor tool to check values and power.
Reading and creating 0-10 V
0-10 V outputs are common on PLC sensors and HVAC. Divide the voltage down to the ADC range with precision resistors (see the voltage divider tool). To produce 0-10 V from a microcontroller, use a DAC module with an op-amp gain stage; a PWM-to-voltage DAC such as the GP8501 outputs up to its supply and needs amplification for 10 V. See ADC and DAC modules and op-amps.
Digital alternatives
Many modern transmitters, such as pH controllers, flow gauges and vacuum gauges, offer RS485 Modbus instead; see Modbus with Arduino and ESP32 and RS485. Keep 4-20 mA wiring away from mains and use shielded twisted pair.
Try it: Current shunt resistor calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Connecting a 4-20 mA transmitter straight to an ADC input.
- Using a loose-tolerance shunt resistor.
- Ignoring that 0 mA means a fault.
- Overloading a 3.3 V input with a 5 V signal.
- Running signal wires beside mains cables.
Frequently asked questions
Why is the minimum 4 mA?
So that a broken wire (0 mA) can be told apart from a zero reading.
What resistor do I use?
250 Ω for 1-5 V or 150 Ω for a 3.3 V ADC.
Can I power the transmitter from 5 V?
Most need 12 to 24 V.
How do I convert 0-10 V to 3.3 V?
Use a voltage divider.
Should I use isolation?
Yes in noisy sites or when grounds differ.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.





