Home › Guides

Sensor Calibration Basics: Methods and Good Practice

Learn what sensor calibration is, why sensors drift, how offset and gain corrections work, and how to plan a simple calibration routine.

Calibration is the process of comparing a sensor's output with a known reference and then documenting or correcting the difference. Even good sensors change with time, temperature and use, so calibration is what turns a raw reading into a result you can trust.

Why calibration is needed

Every sensor has some combination of offset error, gain error and non-linearity. These come from manufacturing variation, mounting stress, ageing materials and environmental effects. Over time, drift adds to them. Without a check against a reference, you cannot know how large these errors have become.

The idea of a reference

A reference is a source of the quantity whose value is known with much better certainty than the sensor under test. A common rule of thumb is that the reference should be several times better than the device being checked. For temperature, a reference might be a stable bath with a trusted thermometer, or a well-known physical fixed point such as melting ice. A reference that is itself uncalibrated only moves the problem elsewhere. Professional laboratories keep an unbroken chain of comparisons, called traceability, leading back to national measurement standards.

Common calibration approaches

  • Single-point (offset) calibration: measure at one known value and subtract the difference. It fixes a constant offset but not errors that change across the range.
  • Two-point calibration: measure at a low and a high value, then fit a straight line. This corrects both offset and gain.
  • Multi-point calibration: measure at several values and fit a curve or table, which handles non-linear sensors.

After the readings are taken, the correction is applied either by adjusting the device, if it allows it, or in software with a stored formula or lookup table. A simple linear correction takes the form: corrected = gain × raw + offset.

A simple two-point routine

  1. Choose two reference points near the ends of the range you actually use.
  2. Let the sensor and reference reach the same stable condition, and wait long enough for both to settle.
  3. Record several readings at each point and average them to reduce noise.
  4. Compute the gain and offset that map the sensor readings onto the reference values.
  5. Apply the correction, then check against a third value that was not used in the fit.
  6. Write down the date, conditions, reference used and results.

How often to recalibrate

There is no universal interval. It depends on how stable the sensor type is, how harshly it is used, and how costly an error would be. Many users start with a regular schedule, then lengthen or shorten it based on how much drift the records show. Recalibrate also after any shock, overload, repair or move to a new environment. Drift behaviour is explained further in reading sensor specifications.

Common mistakes

  • Calibrating in conditions very different from real use, such as at room temperature for a sensor used outdoors.
  • Not allowing enough settling time, especially for slow temperature sensors.
  • Correcting only one point on a sensor whose errors vary across the range.
  • Forgetting the effects of the full signal chain, including amplifiers and converters, rather than the sensor alone.

Calibration versus adjustment and verification

These terms are sometimes mixed up. Calibration strictly means comparing the sensor with a reference and recording the difference. Adjustment is changing the device or its correction so the difference shrinks. Verification is a later check that the sensor still agrees with the reference within a chosen tolerance. A sensor can be calibrated, found to be within tolerance and never adjusted at all, and the record of that comparison is still valuable.

Keeping useful records

A calibration is only as useful as its documentation. Keep the sensor identifier, date, reference used, the conditions, the as-found readings before any adjustment, and the as-left readings afterwards. Comparing as-found results across several calibrations shows how fast the sensor drifts and tells you whether your interval is sensible.

Tip: Calibrate the whole measurement chain together when you can. Checking the sensor, wiring, conditioning and converter as one system captures the errors that actually reach your data.

Further reading

To see how the signal chain is built, read sensors in IoT systems. For help interpreting the accuracy numbers you are trying to confirm, see reading sensor specifications. Safety-critical or regulated measurements should be calibrated by accredited laboratories following official procedures.

Keep reading