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.
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.
Example display values • illustrative, not live measurements
Find the answer you need
Start with the task you’re trying to solve.
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.
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.
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.
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.
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.
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
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
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
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.
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
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
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
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.
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
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
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
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
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
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.
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
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.
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
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
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.
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
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
No sensors match that search
Try a broader term such as temperature, motion, light, pressure, I²C or gas.
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.
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.
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 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.| Output | What the controller receives | Typical connection | Key consideration |
|---|---|---|---|
| Resistance / capacitance | A changing electrical property | Divider, bridge, timing or excitation circuit | Not automatically a voltage output |
| Analog voltage | Continuously varying voltage | ADC or analog input | Input and reference voltage limits |
| 4–20 mA current loop | Current proportional to measurement | Current input or precise shunt receiver | Loop compliance, wiring and fault interpretation |
| Digital I²C / SPI | Codes in registers or digital frames | Serial data, clock, supply and ground | Logic levels, bus address, timing |
| Binary switch / pulse | Presence state, pulses or frequency | GPIO input, counter or timer | Pull-ups, debounce and thresholds |
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.
Define the measurement
Temperature of what? Pressure relative to atmosphere or absolute? Presence or actual distance? Establish the measurand and expected range.
Decide how accurate
Set acceptable error, resolution, repeatability and calibration requirements. High ADC bit depth alone does not guarantee a high-accuracy measurement.
Check the environment
Temperature, humidity, vibration, chemical exposure, light interference, EMC, ingress protection and media compatibility can decide the technology.
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.
Plan the interface
Verify excitation and power, analog ranges or digital bus levels, required conditioning, wiring length and protection before choosing the part.
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
| Task | Good starting technology | Main reason | Verify before using |
|---|---|---|---|
| Room temperature | Digital temperature IC or thermistor | Simple electronic integration | Actual sensor location and accuracy |
| Very hot exhaust | Thermocouple | Suitable temperature range with appropriate probe | Probe rating, cold junction, wiring |
| Metal object present | Inductive proximity switch | Contactless detection of conductive targets | Target material and switching distance |
| Robot orientation | Accelerometer + gyroscope (IMU) | Measure acceleration and angular rate | Drift and fusion with other references |
| Precision force | Strain-gauge load cell | Direct mechanical strain measurement | Excitation, mechanical mounting and calibration |
| Remote industrial pressure | Pressure transmitter with 4–20 mA | Industrial interface suited to field wiring | Pressure range, loop voltage, media, safety |
Sensor Accuracy, Precision, Resolution and Calibration
These specifications describe different behaviors. Confusing them is a common cause of disappointing measurements and incorrect sensor comparisons.
How close a measurement is to a reference value, under stated conditions. Usually expressed as an error limit.
How closely repeated readings agree with each other; consistent readings can still be wrong.
The smallest distinguishable change or numerical step. A fine step size does not prove good accuracy.
Change in output per unit change in input, such as 40 mV per psi for the example below.
How quickly a sensor reaches a specified fraction of a change; important for control and fast events.
Change over time or different output on rising versus falling input; may require calibration or design margin.
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.
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.
This is an ideal linear example. Verify the actual sensor datasheet, supply voltage, ADC input range and calibration.
Pressure = 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.
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.
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.
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.
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.
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.
| Symptom | Likely causes | First check |
|---|---|---|
| Always zero / no reading | Power absent, cable open, wrong address, interface not initialized | Supply, ground, bus presence, pinout and connector |
| Maximum or clipped reading | Input above ADC reference, sensor saturated, polarity or scaling error | Actual pin voltage and allowable input range |
| Noisy or jumping | Weak signal, poor return path, EMI, reference noise, inadequate filtering | Ground, cable routing, probe loading and sampling |
| Stable but incorrect | Calibration bias, wrong measurement units, install location, temperature drift | Compare with traceable reference and expected conditions |
| Slow response | Sensor thermal mass, averaging, filter cutoff, polling delay | Step response and configured sample/update settings |
| Changes with wiring length | Voltage drop, resistance lead error, interference or bus capacitance | Wiring method, excitation, shielding and bus timing |
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.
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.
- Analog Devices — What is a sensor?Definition, measured quantities and sensor-to-controller interpretation.
- IEEE — Sensor overviewSensor definition, measurands and sensing categories.
- Texas Instruments — TMP117 digital temperature sensorReal I²C interface, operating range and accuracy versus resolution.
- Analog Devices — 4–20 mA sensor loopsHow industrial transmitters use current and detect abnormal loop conditions.
- NYU ITP — Sensors: the basicsHow a simple physical measurement becomes a signal for electronics.