Sensor wiring · Free converter

Analog Sensor Scaler & Two-Point Calibration (0-5 V, 4-20 mA)

Turn a voltage or a loop current into bar, litres or degrees. Calibrate from two known points, check a third, size a divider or a shunt, and spot a broken wire before it reaches the report.

  • Runs in your browser
  • Six signal types
  • Divider and shunt

As printed on the sensor or its datasheet.

For example bar, L, °C or %.

For example 0 bar at 4 mA. Can be negative.

For example 10 bar at 20 mA.

The reading from the device or a multimeter, in the unit of the signal type.

%

Beyond this, a voltage outside the range is treated as a wiring fault. Not used for 4-20 mA.

Value from the signalLinear scaling

Keep these numbers with the IO mapping sheet

A report with the scaling, the calibration line and the input circuit.

Analog input report

Send the platform the right gain and offset

  • The value for your measured signal
  • Gain and offset from two points, with the check point error
  • Divider output and the largest safe input
  • Shunt voltage, power and the ADC step
  • Method and the values you entered

Which signal type does your sensor use?

Analog sensors for fuel, pressure, load and temperature send their value as a voltage or a current. A signal with a live zero, such as 4-20 mA or 0.5-4.5 V, lets the device tell a true zero from a broken wire.

Common analog signal types
SignalZeroFullA reading outside the range means
4-20 mA4 mA20 mA3.6 mA or less, or 21 mA or more: failure (NAMUR NE 43)
0-20 mA0 mA20 mAA zero reading cannot be told from a broken wire
0.5-4.5 V0.5 V4.5 VBelow 0.5 V or above 4.5 V: open or short circuit
1-5 V1 V5 VBelow 1 V: likely a broken wire
0-5 V0 V5 VZero and a broken wire look the same
0-10 V0 V10 VNeeds a divider on a 5 V input

How does linear scaling work?

The value moves in a straight line between the two ends of the signal.

value = vLo + (x - sLo) x (vHi - vLo) / (sHi - sLo)Example: 4-20 mA, 0-10 bar, 12 mA0 + (12 - 4) x 10 / 16 = 5 barTwo-point calibrationm = (y2 - y1) / (x2 - x1) ; b = y1 - m x x1 ; value = m x signal + b

How do you calibrate from two points?

A datasheet range assumes a perfect sensor and a perfect install. Two real points remove the offset and gain errors of your own setup.

  1. Read the low point

    Empty tank, no load or zero pressure. Note the signal.

  2. Read the high point

    Full tank or a known load near the top of the range.

  3. Check the middle

    One more known value in the middle shows whether the sensor is linear.

  4. Enter the gain and offset

    Put m and b in the platform or the device configuration for that input.

How do you size a divider or a shunt?

The device input has a maximum voltage. A divider scales a higher sensor voltage down to it, and a shunt resistor turns a loop current into a voltage.

SensorR1R2AINVout = Vin x R2 / (R1 + R2)Transmitter4-20 mA+24 VRsAINV = I x Rs = 1-5 V at 250 Ω
Fig. 1 A divider brings a high voltage into the input range. A shunt turns a loop current into a voltage. In both cases the device reads volts, and the tool turns them back into the sensor value.
Vout = Vin x R2 / (R1 + R2)Vin max = Vmax x (R1 + R2) / R2Example: 28 V with 47 kΩ and 10 kΩ28 x 10 / 57 = 4.91 V ; 5 x 57 / 10 = 28.5 VShunt voltage at 20 mA and power at 21 mAV = I x R = 0.020 x 250 = 5 V ; P = 0.021 x 0.021 x 250 = 0.11 WADC step = full scale / 2^bits5 / 4096 = 1.22 mV

How do you spot a broken wire?

A reading outside the signal range is a wiring warning, not a value.

  • 4-20 mA: 3.6 mA or less, or 21 mA or more, is a failure signal under NAMUR NE 43. Between 3.8 and 20.5 mA is still a measurement.
  • Voltage signals: the tool treats a reading beyond your tolerance as an open or short circuit.
  • Set the platform to flag these readings instead of plotting them as values.

Assumptions and limits

  • The sensor is treated as linear. A non-linear tank or sensor needs a calibration table with more points.
  • The device input range, ADC resolution and shunt are your inputs. The starting values are typical examples, not Tracom specifications. ST100 (published): 4 analog inputs and 5 AD inputs. Their input range and ADC resolution are not published, so take them from the datasheet.
  • Resistor tolerance and input impedance of the device shift the divider slightly. Two-point calibration removes most of it.
  • NE 43 values as summarised in the Wikipedia current loop article. The current edition of NE 43 is dated 2021-07-26 (NAMUR notice) and is available only from the NAMUR office, so the values could not be read in the official text. Last checked 2026-11-03.
Verify against the current official text

Check the fault thresholds against the NAMUR NE 43 recommendation and the sensor datasheet before you set alarms on them.

Related Tracom solution

Match the sensor to the input first

Analog input ranges, ADC resolution and the way scaling is entered differ by device. Ask Tracom which signal types a device input accepts and where gain and offset are set.

  • Input range decides whether a divider is needed.
  • Signal type decides how a broken wire shows.
  • Two-point calibration fixes your own offset and gain.
  • IO mapping sheet records the result per input.
Questions

Questions about analog sensor scaling

Connecting an analog sensor to a Tracom device? Contact Tracom.

Why does 4-20 mA start at 4 and not 0?

The 4 mA live zero lets the device tell a zero reading from a broken loop. With 0 mA as zero, a cut wire looks like an empty tank.

Can a device read 4-20 mA on a voltage input?

Yes, with a shunt resistor across the input. 250 Ω gives 1 to 5 V. Check that the over-range current stays inside the input maximum.

Why calibrate if the datasheet gives the range?

Because the sensor, the cable, the divider and the input each add a small error. Two real points remove most of it in one step.

What resistor power do I need for the shunt?

At 21 mA a 250 Ω shunt dissipates about 0.11 W. Choose at least twice that, so a 0.25 W resistor is common.

What is Tracom's role here?

Tracom supplies the device, its input datasheet and installation guidance. The tool does the arithmetic. The sensor choice and the final calibration stay with your installer.

Related tools and templates

Wire and record the input

Get the report

Enter your details and we will email you the file.

Use your real name so the file arrives addressed to you. Don't worry, we won't flood you with emails or calls.

Scroll to Top