Two identical sensors, two different readings: calibration and drift
Separating sensor error from installation effects: correction across a range, a worked uncertainty budget, drift and a practical check record.

Two modules using the same sensor type read 24.98°C and 25.22°C near a check location. A 0.24°C difference is enough to start investigating. Before writing a −0.24°C offset into firmware, swap the modules and see what happens to the difference. If some of the discrepancy comes from airflow or enclosure heating, that offset will carry the effect into every future reading, even after the mounting changes.
The example first separates the position effect from the difference between modules. It then quantifies what a one-point correction buys and follows the module through several months of checks to decide whether it can remain in service. All readings, models and check histories in the article are synthetic.
Establish whether the quantities are the same
Air temperature near a wall, package-surface temperature and temperature inside a product are not interchangeable. Two correctly functioning probes can disagree because their conditions differ. Before calling a discrepancy an error, define the measurand: location, object, time and averaging method.
For this example, we are interested in air temperature at a specified check location after sufficiently stable conditions have been reached. We do not infer the temperature of the whole warehouse from one reading. That second task requires a separate assessment of measurement locations and spatial variation.
Swap positions. Always record the difference in the same order: indication B minus indication A. Leave the mounts at positions 1 and 2, swap the modules, let them stabilize again and repeat the reading. This separate diagnostic example takes place near 25°C.
Scroll horizontally if needed.
| Arrangement | Module A | Module B | Difference B − A |
|---|---|---|---|
| A at position 1, B at position 2 | 24.98°C | 25.22°C | +0.24°C |
| A at position 2, B at position 1 | 25.08°C | 25.12°C | +0.04°C |
If module and position differences are stable and additive, swapping changes only the sign of the position contribution. The mean of the two differences, (0.24 + 0.04)/2 = 0.14°C, estimates the difference between modules. Half their difference, (0.24 − 0.04)/2 = 0.10°C, estimates the effect of position 2 relative to position 1. Subtracting the entire 0.24°C from B would overcorrect the difference between modules by 0.10°C.
Returning to the first arrangement helps detect changes in conditions over time. Reproduce the orientation and cable routing, record the indications simultaneously and check local airflow. If swapping also changes how a particular enclosure dissipates heat, the simple additive model breaks down. The swap separates relative effects. Establishing each module’s error still requires a reference.
Calibration, correction and checking are not synonyms
Calibration establishes a relationship between indication and reference under defined conditions, with associated uncertainty. Correction uses that information to change the reported value. A check assesses whether a result meets a selected requirement. The first activity does not automatically perform the other two. VIM, JCGM 200:2012, entry 2.39 distinguishes calibration from adjustment.
For a product team, the consequence is important: a certificate or error table does not decide whether the device is suitable. Relate the result to the application range and acceptance rule. A probe may be adequate for indicative room monitoring and inadequate for a process requiring a smaller error.
Avoid a single record field saying “calibrated: yes”. Record the comparison date and identifier, established errors, applied correction and subsequent check result. If a firmware update disables correction, a historical calibrated label can become misleading.
NIST describes calibration as comparison with a reference. That reference is not perfect. Its certificate, uncertainty and conditions of use become part of the result, rather than an appendix that can be ignored when interpreting the reading.
What the component promises and what the product measures
The TMP117 digital temperature sensor provides an example component type. TI’s revision-D datasheet specifies a resolution of 0.0078125°C per step and a maximum error of ±0.1°C over −20 to 50°C under specified conditions. This does not mean that an arbitrary device containing the part measures surrounding air with the same error. TI, TMP117, SNOSD82D.
The silicon measures its own temperature. The relationship between that temperature and the object of interest depends on the design. Electronics, thermal paths and airflow can introduce additional effects. TI discusses board-layout and mechanical-stress effects in its layout guidance. This supports checking the complete chain in its intended mounting rather than transferring one component specification to the product.
Our two modules model complete systems, not the manufacturing distribution of TMP117 chips. Errors above ±0.1°C are not a claim that this component violates its specification. They illustrate an assembly or installation whose temperature differs from the reference.
Requirements should therefore be written at product level. Define the power conditions, communication mode, orientation and airflow under which an error claim applies. If these conditions change the result, controlling them is part of the solution rather than something to conceal in a correction coefficient.
One correction, five temperatures
For module A, assume eA(T) = 0.04 + 0.002 × (T − 25) in °C. For module B, assume eB(T) = 0.18 + 0.004 × (T − 25). These are explicitly specified lines, not fitted experimental curves. Evaluate them at five points:
Scroll horizontally if needed.
| Reference temperature | Error A | Error B | A after −0.04°C correction | B after −0.18°C correction |
|---|---|---|---|---|
| 0°C | −0.01°C | +0.08°C | −0.05°C | −0.10°C |
| 10°C | +0.01°C | +0.12°C | −0.03°C | −0.06°C |
| 25°C | +0.04°C | +0.18°C | 0.00°C | 0.00°C |
| 40°C | +0.07°C | +0.24°C | +0.03°C | +0.06°C |
| 50°C | +0.09°C | +0.28°C | +0.05°C | +0.10°C |
A correction established at 25°C aligns both indications at that point. It does not remove the slope difference. At 50°C, module B retains a model error of +0.10°C even though its reading at the adjustment point looks perfect. A one-point check does not establish performance across a range.
The corrected zeros follow from the specified model; they are not independent confirmation of accuracy. In a real process, check performance using a separate series of comparisons and include uncertainty in the estimated coefficient. Otherwise, the same observation both sets the result and declares success.
A linear correction could also remove the slope of our synthetic lines. That is not an argument for multipoint fitting in every application. Establish that the relationship is stable and that the fit does not merely follow noise or a temporary temperature gradient. Additional coefficients do not substitute for a better method.
An uncertainty budget: where ±0.11°C comes from
Consider a hypothetical budget for one comparison. Assume standard uncertainties of 0.030°C from the reference, 0.020°C from repeatability and 0.040°C from spatial-condition differences. For resolution of 1/128°C, assume a uniform rounding-error distribution spanning one step, giving approximately 0.00226°C. Apart from the quantization step, these are example assumptions, not values read from certificates.
With independence and unit sensitivity coefficients, uc = sqrt(0.030² + 0.020² + 0.040² + 0.00226²) ≈ 0.0539°C. Using an assumed coverage factor k = 2 gives expanded uncertainty of approximately 0.108°C, rounded up to 0.11°C for the plot and decision example. NIST TN 1297 describes uncertainty combination and coverage factors.
Spatial-condition differences account for about 55% of the variance in this budget. If improved mounting and characterization of the setup reduce that contribution from 0.040°C to 0.020°C, with the other assumptions unchanged, U falls from about 0.108°C to 0.0826°C. Eliminating quantization alone would change U by less than 0.0001°C. That is a numerical case for improving the setup first. If repeatability was estimated from the scatter of quantized indications, check for overlap before adding a separate quantization contribution.
After correction, assume an additional coefficient standard uncertainty of 0.040°C, determined in a separate independent comparison. The result becomes 2 × sqrt(uc² + 0.040²) ≈ 0.134°C, rounded up to 0.14°C in the plot. Correction reduces modelled bias but need not reduce result uncertainty. Since the coefficient is shared by subsequent readings, its uncertainty introduces dependence among them.
The independence assumption is deliberate. Correction and verification may use separate datasets and still share an error from the same reference probe. If correction and checking use overlapping reference information, the covariance structure needs analysis. The simplified calculation cannot simply be copied into a real certificate because its convenient assumptions may not match the actual measurement chain.
What averaging can and cannot improve
If successive observations contain an independent random contribution, averaging can reduce its effect. Independence matters. Readings from a sensor with an internal filter, or samples taken faster than the thermal state changes, can be strongly correlated. A counter showing a thousand samples does not guarantee a thousand independent pieces of information.
Name the reported result as well. Uncertainty in a five-minute average does not automatically describe uncertainty in one alarm-triggering observation. If an application acts on a single sample, a budget based on a long average can give an optimistic account of the decision. Averaging can also delay detection of a real temperature change.
In our budget, 0.020°C represents the assumed repeatability of a single comparison result. We do not divide it by the square root of the number of temperature points. Five points across a range are not five repetitions of the same quantity. Confusing those denominators can artificially reduce reported uncertainty.
If sources are correlated, straightforward root-sum-of-squares combination needs modification. It is particularly easy to count a reference contribution twice, or subtract it incorrectly, when correction and checking use the same dataset. This is why our calculation explicitly assumes independent determination of the correction.
Agreement between probes does not prove agreement with a reference
If both probes were compared against the same reference, some uncertainty contributions are shared. They may partly cancel when analysing the difference between probes but remain relevant to absolute temperature. Do not mechanically add every contribution twice, and do not treat two matching displays as proof of correct measurement.
Imagine a reference whose indication has shifted by +0.15°C. Adjusting both probes against it may produce excellent agreement between them and a common error relative to actual temperature. Repeating the comparison against the same reference is not independent confirmation. A check must address the possibility of common error, for example through another verified reference and an appropriate comparison procedure.
A similar issue arises when two probes share filtering, enclosure and mounting. Both may lag behind a temperature change in similar ways. Agreement during a transient does not establish that either follows the object’s temperature. Static checks and dynamic-response tests answer different questions. Correcting a constant error does not remove delay; dynamic compensation needs a separate model and noise assessment.
Stabilization is a criterion, not just a duration
“Wait five minutes” may work in one setup and fail after a change in enclosure or airflow. A better method defines an observable stabilization criterion and a maximum wait. It also specifies the action when stabilization is not achieved.
A criterion might limit changes in reference and probe readings over a time window, but its values must suit the required uncertainty and setup dynamics. We do not prescribe a universal number for an unknown chamber. The essential point is that an operator cannot shorten the wait simply because a reading briefly looks plausible.
Control the temperature sequence too. A difference between reaching 25°C from below and from above may reveal insufficient stabilization or hysteresis. Always approaching in the same direction can conceal the effect. An additional return point may be more informative than extra digits recorded during one sweep.
For a radio-equipped module, specify the electronics operating mode. Changing transmission frequency during a comparison can change heating in the complete device. If the product has several modes, assess whether one correction applies to all of them rather than copying coefficients automatically between configurations.
Drift: a useful correction does not remain valid indefinitely
Assume checks of a corrected module at 25°C from month zero through month six. The synthetic errors are 0.00, 0.01, 0.03, 0.04, 0.07, 0.11 and 0.16°C. The plot uses expanded uncertainty of 0.11°C for the current comparison. We do not add historical coefficient uncertainty again: the check measures the actual indication with correction active, establishing its error against the reference through a new comparison.
Assume a ±0.20°C requirement and a three-outcome rule for the result e ± U. Accept when the entire interval lies within tolerance, so |e| + U ≤ 0.20°C. Declare nonconformity when the interval lies entirely beyond one tolerance limit, so |e| − U > 0.20°C. Partial overlap gives an inconclusive result. Agree the rule and rounding convention before testing, considering the cost of both false acceptance and false rejection. JCGM 106:2012, sections 7 and 8.
The same rule changes the interpretation of the earlier one-point correction. For module B at 25°C, |e| + U is 0.00 + 0.14 = 0.14°C. At 50°C it is 0.10 + 0.14 = 0.24°C, an inconclusive outcome. Acceptance at 25°C applies to that point. A claim over the full range also needs evidence that the test covers the conditions and temperatures between test points.
At U = 0.11°C, an acceptable error estimate has a magnitude of at most 0.09°C. In month four, the +0.07°C error gives an interval of −0.04 to +0.18°C. In month five, +0.11°C gives 0.00 to +0.22°C and the result becomes inconclusive. If a justified repeat at the same estimated error lowered U to 0.08°C, the upper bound would be +0.19°C. The improved comparison would then support acceptance. The product limit would still be ±0.20°C.
This is a trigger for action, not evidence of linear ageing or a ready-made six-month calibration schedule. We have seven specified points and no observations of a real mechanism. We should not extrapolate a straight line and promise when the sensor will cross a limit. We can demonstrate why reviewing a trend may be more informative than a calendar reminder without history.
Check intervals should reflect the significance of the measurement, environment, stability history and opportunities to detect a problem. An enclosure replacement, water ingress, overheating or firmware change may require an unscheduled check. An unexpired label does not erase the consequences of such an event.
What to do with readings when acceptance can no longer be confirmed
One decision concerns the future: stop use, improve installation, apply a correction, send the device for calibration or replace it. The second concerns the past: how much confidence remains in readings collected since the last satisfactory check?
The start of the change may be unknown. Distributing the final error linearly across the historical record is an additional model, not a fact. Examine operational events, comparisons with other locations and available constraints. In some applications, the appropriate outcome is to flag a period for review rather than automatically “repair” every historical reading.
Preserve raw values, the applied correction, its version and its validity interval. A new coefficient should not overwrite the old one. If an application presents recalculated history, both the original result and the recalculation method must remain reconstructable.
A shared reference error is a separate scenario. When all probes appear to shift, do not automatically adjust every one. Check the reference and setup first. One incorrect comparison can introduce a consistent error into an entire fleet of otherwise satisfactory devices.
What if the result remains unresolved?
A result near a limit does not necessarily require replacing the sensor. Improve the comparison, reduce the gradient, use a better reference or repeat the check after correcting an identified installation problem. Each intervention should have a hypothesis and a record. Simply repeating an unchanged method more often may only increase the chance of obtaining a convenient result.
If the application permits a narrower operating range, that is another possible disposition, but it must be visible in product configuration and documentation. A probe cannot be accepted over 0°C to 50°C solely because it meets the requirement between 20°C and 30°C. Changing the range changes the declared function; it is not a technical correction to a report.
A disposition should also name the person responsible for implementing it. A note recommending a restricted range is ineffective if the application still accepts configuration outside that range. Verification should follow the decision through to the actual device or software state.
Plan the comparison before commissioning a laboratory
Before commissioning work, describe the question the result must answer. Are you checking a complete-product claim, determining a correction, or investigating two installations? Each may require different temperature points, mounting and configuration. Sending a sensor without its enclosure can produce a valid report that excludes the effect occurring in the user’s installation.
Prepare the temperature range, required uncertainty, operating modes and data-access method for discussion. If the product sends readings to a cloud service, specify whether the comparison concerns the sensor register, the firmware-corrected output or the value recalculated in the application. Unit conversion, rounding and an outdated coefficient can introduce differences outside the probe itself. The boundary of the tested system should be visible in both the request and the resulting report.
A check record that can be used in a project
A useful record need not be a large laboratory system. It must make clear what was compared, under which conditions and why a particular decision followed.
Scroll horizontally if needed.
| Area | Minimum record |
|---|---|
| Object | Serial number, revision, firmware, operating mode, active correction |
| Quantity | What and where is measured, range and application requirement |
| Reference | Identifier, certificate, uncertainty and conditions of use |
| Method | Probe arrangement, stabilization, direction of temperature changes, repetitions |
| Results | Raw readings, errors, uncertainty budget, correlations and decision rule |
| Action | Disposition, owner, next check and assessment of historical impact |
Before writing a new correction, check integrity: correct serial number, correction sign, unit and format version. A sign mistake can double the error instead of removing it. Reading the coefficient after a restart verifies durable configuration rather than merely the service program’s memory.
Example disposition record. Module B, correction −0.18°C, month-five check at 25°C: error +0.11°C, U = 0.11°C, inconclusive. Suspend use of this channel for threshold-based decisions. Preserve the as-found result before changing any correction and repeat the comparison after checking the mounting and reference. Flag data collected since the last acceptance in month four for review. Record the follow-up result and any new coefficient separately.
Before using a correction in a product, establish what error it addresses, for which unit, over which range and operating mode, and how you will verify that it still works. The check record should let you reconstruct each decision after a change in hardware, software or conditions.
Sources
- JCGM 106:2012 - decision rules and risk in conformity assessment.
- JCGM 200:2012, International Vocabulary of Metrology, entry 2.39 - calibration and its distinction from adjustment.
- NIST/SEMATECH e-Handbook: Calibration - reference comparison and calibration-process issues.
- NIST TN 1297, 1994 edition - standard, combined and expanded uncertainty.
- Texas Instruments: TMP117, SNOSD82D, revision D, September 2022 - component resolution, specifications and thermal mounting considerations.
Plots, module errors, drift history and uncertainty budgets are original synthetic models. Component specifications are not used as evidence of complete-device performance.