ELECTRONICS ENGINEERING / SENSOR FIELD GUIDE

Sensors Explained: Types, How They Work & Examples

Understand what sensors measure, how they turn physical conditions into electrical data, and which sensor to use. Compare 21 sensor technologies, see real circuit connections, and try a live reading example.

Quick answer

A sensor detects a physical, chemical or biological quantity—such as temperature, light, motion or pressure—and produces a measurable signal. Electronics use that signal to monitor a condition or make a control decision.

Illustrated guide Interactive reference Electronics and engineering applications

Find the answer you need

Start with the task you’re trying to solve.

01 / THE FUNDAMENTALS

What Is a Sensor and How Does It Work?

A sensor is a measurement input. It responds to a real-world quantity (the measurand) and makes that quantity observable to a circuit, instrument or controller.

01Physical conditionHeat, light, pressure, motion
02Sensing elementResistance, charge, field, voltage
03Condition signalExcitation, protection, gain, filtering
04Convert / communicateADC, I²C, SPI or analog output
05Use the resultDisplay, alarm, log, feedback

The exact stages vary. A raw thermistor needs an excitation circuit; a digital temperature IC may contain the sensing element, conditioning, ADC and communication interface in one package.

The word ‘sensor’

Sensor vs. transducer

A sensor detects a quantity. A transducer converts energy or a physical effect into another form. Many electronic sensors contain transducers, so the terms often overlap.

A different role

Sensor vs. actuator

A sensor supplies information to a system; an actuator uses a command to create physical action, such as opening a valve, turning a motor or moving a mechanism.

02 / IDENTIFY & COMPARE

21 Types of Sensors: Functions, Outputs and Examples

Search by the quantity you need to measure, or filter by sensor family. Each entry explains what changes inside the device, how a circuit reads it and the main selection constraint.

Filter by function, technology, output type or application.

Showing 21 of 21 sensor types

Temperature sensing

Resistance, small voltages and digital IC measurements.

4 types
Temperature

NTC thermistor

Resistance decreases as temperature increases.

Typical output
Resistance; usually read through a divider
Where used
Thermostats, battery packs

Check: Nonlinear calibration and self-heating

Temperature

RTD (Pt100 / Pt1000)

Metal resistance rises predictably with temperature.

Typical output
Resistance requiring excitation
Where used
Industrial process temperature

Check: Lead-wire error, excitation and wiring

Temperature

Thermocouple

Two dissimilar conductors create a Seebeck voltage.

Typical output
Small differential voltage (mV)
Where used
Ovens, engines, hot processes

Check: Cold-junction compensation and noise

Temperature

Digital temperature IC

On-chip sensing and conversion provide calibrated readings.

Typical output
I²C / SMBus / SPI (varies)
Where used
Boards, equipment, environmental monitors

Check: Thermal placement and self-heating

Light and sound

Optical and acoustic sensors convert photons or pressure waves to data.

4 types
Light & sound

Photodiode

Incident light generates photocurrent in a junction.

Typical output
Photocurrent, converted to voltage
Where used
Optical detection, encoders

Check: Spectral response, ambient light and dark current

Light & sound

Ambient-light sensor

Photodetectors and interface circuits estimate illumination.

Typical output
I²C or analog, depending on device
Where used
Display brightness and lighting control

Check: Spectral matching and optical placement

Light & sound

CMOS image sensor

Arrays of photodiodes capture a spatial light pattern.

Typical output
Digital pixel data
Where used
Cameras and machine vision

Check: Exposure, lens, readout speed and lighting

Light & sound

MEMS microphone

A moving diaphragm converts sound pressure to a signal.

Typical output
Analog, PDM or I²S
Where used
Voice, acoustic sensing

Check: Acoustic port, noise floor and frequency response

Motion and proximity

Detect movement, rotation, distance and the presence of objects.

6 types
Motion & proximity

Accelerometer

A MEMS proof mass moves under acceleration.

Typical output
Analog or digital, often I²C / SPI
Where used
Vibration, tilt, wearables

Check: Range, mounting, gravity and bandwidth

Motion & proximity

Gyroscope

A vibrating MEMS structure senses angular rate.

Typical output
Analog or digital, often I²C / SPI
Where used
Orientation and motion tracking

Check: Bias drift and temperature

Motion & proximity

PIR motion detector

Pyroelectric elements respond to changes in infrared radiation.

Typical output
Digital motion indication
Where used
Room occupancy, alarms

Check: May not detect stationary people

Motion & proximity

Ultrasonic distance sensor

Sound time-of-flight measures distance to a reflecting target.

Typical output
Pulse timing or digital interface
Where used
Tank levels, robotics

Check: Temperature, target angle and soft materials

Motion & proximity

Optical time-of-flight sensor

Measures optical flight time or phase related to distance.

Typical output
Digital distance data
Where used
Robotics and short-range ranging

Check: Reflectivity and strong ambient light

Motion & proximity

Inductive proximity sensor

Metal targets alter an oscillating electromagnetic field.

Typical output
On/off switching output
Where used
Machine automation and end stops

Check: Target must be conductive; mounting matters

Force and pressure

Convert diaphragm deflection or mechanical strain into measurement.

2 types
Force & pressure

MEMS pressure sensor

Pressure deflects a diaphragm that changes electrical properties.

Typical output
Voltage, I²C or transmitter output
Where used
HVAC, altitude, tire monitoring

Check: Gauge versus absolute range and media compatibility

Force & pressure

Strain-gauge load cell

Strain changes resistance in a Wheatstone bridge.

Typical output
Low-level bridge voltage (mV/V)
Where used
Scales, force and torque

Check: Stable excitation and temperature compensation

Environmental and chemical

Monitor moisture, humidity and gas conditions.

3 types
Environment

Humidity sensor

A sensing film changes capacitance with water vapor.

Typical output
Analog or digital RH reading
Where used
Buildings and environmental monitors

Check: Condensation, placement and drift

Environment

Gas sensor

Electrochemical or metal-oxide mechanisms respond to gases.

Typical output
Current, resistance or digital data
Where used
Air quality and industrial monitoring

Check: Selectivity, calibration, poisoning and warm-up

Environment

Capacitive soil-moisture sensor

Soil permittivity changes the probe capacitance.

Typical output
Analog or digital measurement
Where used
Irrigation and plant monitoring

Check: Soil composition and field calibration

Electrical and magnetic

Sense current and magnetic fields without guessing from the circuit state.

2 types
Electrical & magnetic

Hall-effect sensor

Magnetic fields produce a transverse Hall voltage.

Typical output
Analog field value or digital switch
Where used
Motor speed, position, contactless sensing

Check: Magnet geometry, offset and temperature

Electrical & magnetic

Current sensor

Shunt voltage, Hall field or transformer coupling measures current.

Typical output
Voltage, digital data or conditioned current
Where used
Energy monitoring and power control

Check: Isolation, AC/DC support and bandwidth

Classification is by main measured quantity; several technologies overlap categories. For example, Hall-effect elements can measure magnetic field or infer electric current, and many sensors are sold as analog or digital modules.

03 / SIGNAL & CIRCUIT CONNECTIONS

Analog vs. Digital Sensors: Outputs and Wiring

Knowing what the sensor measures is only half the problem. The output interface determines the power supply, wiring, conversion, firmware and noise controls needed to read it.

ANALOG / ADC PATH
Sensor voltage
Filter & protect
ADC µC

Voltage sensors need a suitable ADC input range and reference. Resistance-based elements such as thermistors need an excitation circuit first; small bridge signals may need amplification.

Watch: ADC overvoltage, source impedance, reference noise and filtering.
DIGITAL / SERIAL PATH
Sensor IC VDD / GND
I²C / SPI data
µC registers

Digital sensor ICs can package signal conditioning, conversion and calibration. They still need compatible logic supply and bus wiring. I²C usually requires pull-up resistors on SDA/SCL; confirm voltage and bus requirements.

Watch: Logic level, address conflicts, sample rate and correct units.
Common sensor output styles and what a controller needs
OutputWhat the controller receivesTypical connectionKey consideration
Resistance / capacitanceA changing electrical propertyDivider, bridge, timing or excitation circuitNot automatically a voltage output
Analog voltageContinuously varying voltageADC or analog inputInput and reference voltage limits
4–20 mA current loopCurrent proportional to measurementCurrent input or precise shunt receiverLoop compliance, wiring and fault interpretation
Digital I²C / SPICodes in registers or digital framesSerial data, clock, supply and groundLogic levels, bus address, timing
Binary switch / pulsePresence state, pulses or frequencyGPIO input, counter or timerPull-ups, debounce and thresholds
Why engineers use 4–20 mA: On a properly designed industrial current loop, 4 mA represents the low end of a measurement range, not zero current. This helps distinguish a possible broken loop (near 0 mA) from a valid zero reading; fault thresholds depend on the transmitter and system.
04 / ENGINEERING SELECTION

How to Choose the Right Sensor

Start with the measurable quantity and the decision the measurement must support. Then compare range, environmental fit, uncertainty, response speed and interface—not just price or bit count.

01

Define the measurement

Temperature of what? Pressure relative to atmosphere or absolute? Presence or actual distance? Establish the measurand and expected range.

02

Decide how accurate

Set acceptable error, resolution, repeatability and calibration requirements. High ADC bit depth alone does not guarantee a high-accuracy measurement.

03

Check the environment

Temperature, humidity, vibration, chemical exposure, light interference, EMC, ingress protection and media compatibility can decide the technology.

04

Meet timing needs

Check bandwidth, conversion time, sample rate and latency. A sensor that tracks slowly changing air temperature may not capture a fast vibration event.

05

Plan the interface

Verify excitation and power, analog ranges or digital bus levels, required conditioning, wiring length and protection before choosing the part.

06

Validate the entire system

Check actual datasheets, tolerance over temperature, calibration drift, installation location, testability and the consequences of a missed or incorrect reading.

Practical sensor selection examples

Starting points for common sensing tasks
TaskGood starting technologyMain reasonVerify before using
Room temperatureDigital temperature IC or thermistorSimple electronic integrationActual sensor location and accuracy
Very hot exhaustThermocoupleSuitable temperature range with appropriate probeProbe rating, cold junction, wiring
Metal object presentInductive proximity switchContactless detection of conductive targetsTarget material and switching distance
Robot orientationAccelerometer + gyroscope (IMU)Measure acceleration and angular rateDrift and fusion with other references
Precision forceStrain-gauge load cellDirect mechanical strain measurementExcitation, mechanical mounting and calibration
Remote industrial pressurePressure transmitter with 4–20 mAIndustrial interface suited to field wiringPressure range, loop voltage, media, safety
05 / MEASUREMENT QUALITY

Sensor Accuracy, Precision, Resolution and Calibration

These specifications describe different behaviors. Confusing them is a common cause of disappointing measurements and incorrect sensor comparisons.

Accuracy

How close a measurement is to a reference value, under stated conditions. Usually expressed as an error limit.

Precision / repeatability

How closely repeated readings agree with each other; consistent readings can still be wrong.

Resolution

The smallest distinguishable change or numerical step. A fine step size does not prove good accuracy.

Sensitivity

Change in output per unit change in input, such as 40 mV per psi for the example below.

Response time

How quickly a sensor reaches a specified fraction of a change; important for control and fast events.

Drift & hysteresis

Change over time or different output on rising versus falling input; may require calibration or design margin.

Precise ≠ accurate

Tightly grouped readings can be precise but systematically offset. Calibration can reduce bias, while repeatability, drift, noise and the reference standard determine how much confidence a reading deserves.

06 / INTERACTIVE READING LAB

Sensor Voltage to Pressure Calculator

Explore how a linear analog pressure sensor maps voltage to a physical reading—and how an ADC turns that voltage into a digital number. Adjust the example without leaving this page.

CALCULATED MEASUREMENT
50.0psi
0 psi100 psi
Range position50.0%
ADC estimate2048 / 4095
Sensor sensitivity40 mV/psi
ADC LSB size1.221 mV

This is an ideal linear example. Verify the actual sensor datasheet, supply voltage, ADC input range and calibration.

How the example worksPressure = Pmin + (Vread − Vmin) × (Pmax − Pmin) / (Vmax − Vmin)

At 2.5 V, a hypothetical 0.5–4.5 V, 0–100 psi sensor gives 50 psi. A 12-bit ADC with a 5 V reference gives approximately 2048 counts using codes 0–4095. This is a linear learning model, not a calibrated instrument or a recommendation for safety-critical design.

07 / FROM COMPONENT TO SYSTEM

Real Sensor Applications: Three Signal Chains

To understand sensors in practice, follow one measurement all the way from the physical world to the decision a system makes.

EXAMPLE 01

Smart thermostat

A digital temperature sensor measures air near the thermostat. A microcontroller reads that value and compares it with a setpoint to determine whether heating or cooling should run.

Air temperature → Digital IC → Controller
Watch: placement away from hot circuitry and direct sunlight.
EXAMPLE 02

Robot obstacle detection

An ultrasonic or optical ToF sensor estimates distance to an object. Firmware combines measurements and stops or redirects the drive motors when an obstacle enters a configured zone.

Echo or light → Range value → Motor logic
Watch: reflective surfaces, blind zones and update rate.
EXAMPLE 03

Industrial pressure monitor

A pressure transmitter measures line pressure and sends a conditioned 4–20 mA signal to a controller. The controller scales the loop current into engineering units and detects configured out-of-range conditions.

Line pressure → 4–20 mA → PLC
Watch: gauge versus absolute range, loop power and safe installation.
08 / TROUBLESHOOTING & VALIDATION

Why Sensor Readings Are Wrong

A reading can be numerically plausible and still be inaccurate. Check the complete chain before assuming the sensing element has failed.

Common sensor problems and useful first checks
SymptomLikely causesFirst check
Always zero / no readingPower absent, cable open, wrong address, interface not initializedSupply, ground, bus presence, pinout and connector
Maximum or clipped readingInput above ADC reference, sensor saturated, polarity or scaling errorActual pin voltage and allowable input range
Noisy or jumpingWeak signal, poor return path, EMI, reference noise, inadequate filteringGround, cable routing, probe loading and sampling
Stable but incorrectCalibration bias, wrong measurement units, install location, temperature driftCompare with traceable reference and expected conditions
Slow responseSensor thermal mass, averaging, filter cutoff, polling delayStep response and configured sample/update settings
Changes with wiring lengthVoltage drop, resistance lead error, interference or bus capacitanceWiring method, excitation, shielding and bus timing
Design and safety boundary: Industrial pressure, electrical current, combustion gas and other hazardous measurements need appropriately rated devices, correct isolation and competent review. This educational guide does not establish a safe installation, regulatory compliance or protective-function suitability.
09 / QUICK ANSWERS

Sensors: Frequently Asked Questions

What are the main types of sensors?

Common families measure temperature, light, sound, motion, proximity, pressure, force, humidity, gas, current and magnetic field. Within each family are several technologies with different ranges, speeds and electrical interfaces.

What is the difference between an analog and digital sensor?

An analog sensor interface provides a continuous electrical quantity such as voltage or current, or a variable resistance that needs excitation. A digital sensor includes circuitry that communicates a reading or state through a digital output such as I²C, SPI or a pulse signal. Either can be accurate or inaccurate depending on design and calibration.

What is an example of a sensor in everyday life?

A phone’s ambient-light sensor helps adjust display brightness; an accelerometer detects motion and orientation changes; and a thermostat uses a temperature sensor to control heating or cooling.

Are sensors and transducers the same thing?

Not exactly. A transducer converts one form of energy or physical effect into another form. A sensor is the element or device used to detect a measurand; many electronic sensors use a transducer internally, so the terminology often overlaps.

Does higher sensor resolution mean better accuracy?

No. Resolution describes the smallest distinguishable step, while accuracy describes how close a reading is to the true or reference value under specified conditions. Offset, drift, noise and calibration affect accuracy even at high resolution.

How do sensors connect to a microcontroller?

Some use analog voltage sent to an ADC, others need a resistor divider, bridge amplifier or current-to-voltage converter. Digital ICs commonly use I²C or SPI with compatible voltage levels, power and clock/data connections. Follow the particular device datasheet.

10 / PRIMARY TECHNICAL SOURCES

Sensor References and Further Reading

Definitions, example interfaces and operating behavior are supported by technical and educational references. Device-level decisions should rely on the current manufacturer datasheet for the actual part.

CONTINUE LEARNING

Related Electronics Engineering Guides

Back to top ↑

Scroll to Top