← All exercises

Scale

easy

Scales a raw 4-20 mA sensor signal to a 0-100 °C engineering unit value.

What it teaches

Map a sensor's 4-20 mA signal into 0-100 °C. The everyday analog conditioning pattern — when the sensor reads 4, the output is 0; when it reads 20, the output is 100; everything between scales linearly.

Inputs and outputs

TagTypeDefaultDescription
In_RawREALRaw analog input signal in mA
Out_ScaledREALScaled output value in degrees Celsius

Required behavior