Sensor
823 words · 5 min read · 3 sources
A sensor is a device that detects something physical — light, sound, distance, heat, motion, force — and turns it into an electrical signal a computer can read. Sensors are a robot's only link to what is actually happening around it.
A device that turns something physical — light, distance, heat, motion, force — into a signal a computer can read.
Difficulty 1/5 · ClassroomYou use eyes to see, ears to hear and skin to feel. A robot uses sensors. Each one measures a single physical thing and reports it as a number the robot's software can act on.
💡 Think of it like…
A sensor is a messenger from the real world. It only ever carries one kind of message — "this far", "this bright", "this hot" — and it is sometimes slightly wrong, which is why robots listen to several messengers at once.
Why it matters
Without sensors a robot can only replay stored instructions and cannot notice that the world has moved. Every closed control loop, every map and every safe stop begins with a sensor reading.
🤯 NASA's Perseverance rover carries 23 cameras — six more than Curiosity, and more than seven times as many as Sojourner, the first Mars rover, which had three.
🎯 Quick challenge
A robot's wheel encoders say it has driven three metres, but its camera says the scenery has barely changed. What is the technique that combines several imperfect sensor readings into one best estimate called?
A sensor is a device that detects something physical — light, sound, distance, heat, motion, force — and turns it into an electrical signal a computer can read. In a robot, sensors are the only link between the machine and reality: without them a robot can only replay stored instructions, with no way of noticing that the world has moved.
The textbook definition is wider than robotics: a sensor is a device that receives and responds to a signal or stimulus, which makes a thermometer a sensor too. What makes one a robot sensor is that software reads it many times a second and acts on it immediately.
What a sensor actually does
Every sensor performs the same trick: it finds a physical effect that changes predictably with the thing you want to measure, then measures that effect instead. A thermistor's resistance changes as it warms, so measuring resistance measures temperature. An ultrasonic rangefinder times an echo. A camera measures brightness at millions of points and lets software infer the rest.
That indirection is why no sensor is perfect, and why three numbers on a datasheet matter far more than the product name:
- Sensitivity — how much the output changes for a given change in the thing being measured.
- Resolution — the smallest change the sensor can detect at all.
- Accuracy — how close the reading is to the truth. It can be considerably worse than resolution, because of offset, non-linearity, drift and hysteresis.
The HC-SR04, the cheap ultrasonic module on most beginner robots, is specified for a ranging distance of 2 cm to 4 m, a measuring angle of 15°, and accuracy reaching about 3 mm. Those figures say what it is for — stopping a small robot before it hits a wall — and what it cannot do: map a warehouse, or see anything narrower than its 15° cone.
The main sensor families
| Family | What it measures | Typical robot use |
|---|---|---|
| Rangefinders — ultrasonic, infrared, lidar | Distance to the nearest surface | Obstacle avoidance, mapping, navigation |
| Cameras — colour, depth, thermal | Light arriving at a grid of pixels | Object recognition, inspection, visual navigation |
| Inertial — IMU | Rotation rate and acceleration of the robot's own body | Balancing, flight stabilisation, heading estimates |
| Position — encoders, potentiometers | How far a joint or wheel has turned | Closing the loop on every motor |
| Force and touch — load cells, force-torque sensors | Push, pull and twist at a point of contact | Delicate gripping, assembly, safe contact with people |
| Environment — temperature, humidity, gas, light | Conditions around the robot | Monitoring, agriculture, safety shutdowns |
Looking outward and looking inward
Sensors that look outward — cameras, lidar, rangefinders — report on a world the robot does not control. Sensors that look inward — encoders, IMUs, motor current, joint torque — report what the machine itself is doing. A useful robot needs both.
Inward sensing is fast and dependable but accumulates error: encoders that say you have travelled three metres cannot know the wheels were spinning on a wet floor, which is why odometry drifts. Outward sensing corrects that drift, but is slower, noisier and easily fooled — glass defeats most rangefinders, and a camera is only as good as the light.
Why one sensor is never enough
Because every sensor fails in its own specific way, serious robots carry several that overlap and combine their readings through sensor fusion. The point is not redundancy for its own sake; it is that the failure modes do not coincide. The fused estimate is what the control software actually believes — and actuators act on it. That loop, running many times a second, is what separates a robot from a machine following a script.
Common questions
Is a sensor the same thing as a transducer?
Not quite. A transducer converts one form of energy into another in either direction — a loudspeaker is a transducer too. A sensor is the input case: it converts a physical quantity into a signal to be read. In everyday robotics talk the two words are used interchangeably.
How many sensors does a robot need?
As many as it has things it cannot afford to get wrong. A line follower needs two. A self-balancing robot needs an IMU plus wheel encoders. At the far end, NASA's Perseverance rover carries 23 cameras alone, on top of its other instruments.
Can better software fix a bad sensor?
Partly. Filtering and fusion reduce noise and cancel some drift — much of what a navigation stack does. What software cannot do is invent information the sensor never captured: if the resolution is too coarse, or the sensor cannot see the thing at all, no amount of processing recovers it. Choose the sensor for the job first, then filter.
Next: Spark track
S-03: How Robots Sense
A hands-on lesson that puts Sensor to work, with sources at the end.
Open the lesson →Plain English. Free. Unsubscribe in one click.
Keep going
Actuator
An actuator is the part of a machine that turns a control signal into physical movement — force, torque or dis…
ConceptWhat is a robot?
A robot is a machine that can sense the world, decide what to do, and act on its own — without a human guiding…
ConceptLidar
Lidar is a sensor that measures distance by firing invisible laser pulses and timing how long they take to bou…
Last updated · 2026-11-08
Spotted something off? Report an error →