It's easy to treat sensor selection as picking a part number off a datasheet and wiring it up. In practice, the sensor is only one half of the measurement chain — the analog front-end (AFE) that conditions, amplifies, and digitizes its output determines whether the system actually achieves the accuracy the sensor is capable of, or quietly falls short of it in ways that are hard to diagnose after the fact.
Matching sensor type to the actual physical quantity
The first decision is less about brand and more about sensing principle — resistive, capacitive, piezoelectric, and optical sensors each have different output characteristics, different failure modes, and different conditioning requirements. A resistive sensor (like an RTD or many gas sensors) needs a stable excitation current or voltage and is sensitive to lead-wire resistance; a capacitive sensor needs a front-end that doesn't introduce parasitic capacitance comparable to the signal itself; a piezoelectric sensor produces charge, not voltage, and needs a charge amplifier rather than a standard op-amp stage. Picking the sensing principle first, based on what's actually being measured and in what environment, narrows the field before individual part numbers matter.
Signal conditioning: where most accuracy is won or lost
- Amplification — a low-amplitude sensor signal needs gain before it reaches the ADC, but excessive gain amplifies noise along with signal; matching gain to the ADC's input range without clipping or wasting resolution is a deliberate calculation, not a rough guess
- Filtering — anti-aliasing filters ahead of the ADC and noise filtering appropriate to the signal's actual bandwidth prevent both aliasing artifacts and unnecessary noise from being sampled
- Impedance matching — a high-impedance sensor feeding a low-impedance input stage loses signal to loading effects; a buffer stage (often a simple op-amp follower) prevents this
- Excitation stability — for sensors requiring an excitation voltage or current (many resistive and some capacitive sensors), instability in that excitation directly translates to measurement error
ADC resolution has to match real, achievable precision
It's tempting to reach for the highest-resolution ADC available, but resolution on paper isn't the same as usable precision. Noise in the analog front-end — thermal noise, power supply ripple, EMI pickup — sets a practical noise floor that can make the ADC's least-significant bits meaningless. Matching ADC resolution to the front-end's actual achievable signal-to-noise ratio, rather than the highest bit-depth on the part list, avoids paying for resolution the system can't actually deliver.
Grounding and layout: the part that isn't on the schematic
A well-designed AFE schematic can still underperform badly on a board with poor grounding — analog and digital ground planes that aren't properly separated and single-point connected, ADC reference traces routed near switching regulators, or sensor traces that pick up EMI from nearby digital signals. Analog signal integrity is decided as much in layout as in schematic design, and it's a common place where a design that simulates well performs noticeably worse on the physical board.
Calibration and compensation
Most real sensors have some combination of offset error, gain error, and temperature-dependent drift that a single-point factory calibration doesn't fully correct. Depending on the accuracy the application needs, this gets addressed through multi-point calibration during manufacturing, runtime temperature compensation using a co-located temperature sensor, or periodic self-calibration routines — a decision that needs to be made deliberately rather than assumed away, since it affects both firmware complexity and manufacturing test time.
Common analog front-end mistakes worth checking for
- ADC reference voltage that isn't as stable or accurate as the resolution being used assumes
- Ratiometric sensors read against a fixed reference instead of the same supply driving the sensor, introducing error when supply voltage varies
- No anti-aliasing filter ahead of an ADC sampling a signal with meaningful high-frequency content
- Sensor excitation switched on immediately before a reading without allowing for settling time
How we approach this
Sensor and AFE design get evaluated together, not sequentially — the front-end is designed around the sensor's actual output characteristics and the accuracy the product needs, verified in layout as much as schematic. See our embedded hardware work for how this fits into a full hardware build.
