Just out todayAI agents & MCP: What a 49.1% attack rate does not tell youCybersecurity: The MCP scanner number that should worry youSpace tech: Sell insurers a one-page orbit crowding score

Explainer/Internet of Things

What is a sensor, and how does it work?

A sensor turns something real, such as heat or movement, into a number a computer can use. Learn the five steps inside one, and how to tell a good reading from a bad one.

The short answer

A sensor is a device that measures something physical, such as heat, light, movement, pressure or sound, and turns that measurement into an electrical signal a computer can read. The measured thing changes a material inside the sensor, a circuit turns that change into a voltage, and a converter turns the voltage into a number.

Grade 5 reading level5 min read

Put your hand near a hot jiko. You do not need to touch it. Your skin reports the heat, your brain reads the report, and your arm pulls back. Three jobs happen in order. Something is measured, the measurement is turned into a signal, and the signal makes something happen.

A sensor does the first two jobs for a machine. It is a small part that measures something real, such as heat, light, movement or sound. It turns that measurement into an electrical signal a computer can read.

Every smart device begins with a sensor. Without one, a computer knows nothing about the world. It only knows what a person has typed into it.

What a sensor really is

A sensor is a translator. On one side is the physical world, which speaks in heat, pressure and light. On the other side is a computer, which understands only numbers. The sensor stands between them.

The trick is almost always the same. The thing being measured changes some electrical property of a material. Heat changes how well a wire carries current. Light knocks electrons loose in a piece of silicon. Pressure bends a tiny beam and moves it closer to a plate.

Stop on the word “changes”. A sensor does not read a number out of the air. It watches one material react, and it measures that reaction.

How it works, step by step

Most sensors follow five steps.

  1. Something in the world acts on the sensing material. Heat, light, force or sound.
  2. The material changes. Its resistance, its voltage or its shape shifts a little.
  3. A small circuit boosts that faint change into a usable voltage.
  4. A converter turns the voltage into a number. This part is called an analogue to digital converter.
  5. Software turns the raw number into a real unit, such as 24 degrees or 3 metres.

Step five is the one people forget. The chip does not produce degrees. It produces a count. Someone has to tell it what that count means. That job is called calibration, and it decides whether your readings are worth anything.

The main kinds you will meet

There are hundreds of sensor types. A few cover most everyday work.

  • Temperature sensors, in fridges, engines and weather stations.
  • Light sensors, which dim your phone screen and switch street lamps on at dusk.
  • Motion sensors, which know when a phone is turned sideways or a machine is shaking.
  • Sound sensors, which are simply microphones.
  • Distance sensors, which bounce sound or light off an object and time the echo.
  • Gas and smoke sensors, in alarms and in air quality monitors.
  • Water sensors, for level, flow and leaks in a pipe.

Many of these are now built as tiny mechanical parts carved into silicon. Engineers call them MEMS sensors. That is why a phone can hold a working accelerometer that costs less than a soda.

What sensors are good at

A sensor never gets bored. It reads the same tank every second, all night, for years, without being asked twice. That patience is its real value.

Sensors are also cheap in bulk, small enough to hide, and fast. A vibration sensor can catch a wobble in a motor weeks before a person would hear it. Fixing that motor on a planned Tuesday costs far less than fixing it when it dies mid shift.

And sensors go where people should not. Inside a furnace. Down a borehole. On a pylon in a storm.

What sensors are bad at

A sensor measures one narrow thing, and it is easily fooled. A temperature sensor in direct sun reports the sun, not the air. A motion sensor watching a curtain reports the curtain, not a thief.

Sensors also drift. Materials age, dust settles, and the same reading slowly comes to mean something slightly different. Therefore any sensor you trust with a decision needs checking against a known reference, on a schedule.

Noise is the third problem. Every reading wobbles a little. A single reading can lie. An average of many readings usually tells the truth.

Accuracy, precision and range

Three words get mixed up. Keep them apart.

Accuracy is how close a reading is to the truth. Precision is how close repeated readings are to each other. A scale that always reads two kilos heavy is precise and wrong.

Range is the span the sensor can handle. Push past it and the reading flattens out or breaks. Check the range before you buy, because a thermometer meant for a room will not survive an oven.

Remember the rule that beats any spec sheet. A SENSOR MEASURES WHAT IT MEASURES. It does not measure what you meant.

Where you already meet sensors

Your phone alone holds a dozen. It knows which way it is held and how bright the room is. It also knows whether it is against your ear, where it sits on a map, and how many steps you took today.

A matatu has sensors for engine heat, fuel level and wheel speed. A prepaid water meter counts litres. A cold room in a shop watches its own temperature. A solar home system reports its battery charge over the mobile network.

Once many sensors report to one system, you have the Internet of Things. Once the thinking moves next to the sensor instead of into a far data centre, you have edge computing.

What is coming next

Two changes are worth watching.

The first is smarter sensors. Small machine learning models now run on the same tiny chip that reads the sensor. That field is called TinyML. A vibration sensor no longer sends a stream of numbers. It sends the word “bearing”.

The second is sensors feeding live models of real objects, known as digital twins. Read more about how a digital twin uses those feeds to copy a machine as it runs.

What to check on your own sensors

Take one sensor you already rely on. A fridge thermometer will do.

Test it against something you trust. Put a second thermometer beside it and compare. Then ask two questions. When was this last checked? What would go wrong if it read two degrees low for a month? If you cannot answer both, you do not have a measurement yet. You have a guess with a number on it.

Just Out Tech explains new research in plain language. This article was drafted with AI assistance and checked by a human against the original source.

What to remember
  • A sensor works by letting the thing being measured change a material inside it, then measuring that change as electricity.
  • A sensor reading is only meaningful after calibration, because the chip produces a raw count and someone must tell it what that count means in real units.
  • Sensors drift and pick up noise over time, so any sensor trusted with a decision should be checked against a known reference on a schedule.

Questions people ask

What is the difference between a sensor and a transducer?

A transducer is any device that changes one form of energy into another. A sensor is a transducer used for measuring, so it turns a physical quantity into a signal. A loudspeaker is a transducer too, because it turns a signal into sound, but nobody calls it a sensor.

Why does a sensor need calibration?

Because the sensor gives out a raw count, not a real unit. Calibration compares that count against a known reference and writes down the relationship. Without it, readings may be steady and still be wrong by a fixed amount, which is worse than no reading at all.

How long does a sensor last?

It depends far more on the setting than on the part. A dry indoor temperature sensor can run for many years. The same part in sun, dust, damp or vibration ages much faster. Plan on checking accuracy regularly rather than trusting a sensor until it fails.

Can a sensor work without the internet?

Yes. A sensor only needs power and a circuit to read it. The internet is for sending readings somewhere else. Many useful systems store readings on the device and only send a summary when a link is available.

About the author

Mark Alex

Mark Alex is the founder and Managing Director of Real Biz Digital, a technology company operating out of Nairobi since 2018. He works in agentic AI and the Model Context Protocol, AI governance, enterprise software architecture and cybersecurity. He holds an MSc in Mechatronical Engineering from Obuda University in Budapest and a BSc in IT, Forensic Technology and Cybercrime, from USIU-Africa in Nairobi, and has published IEEE conference research on an AI-powered digital twin for greenhouse systems. He is the author of seven books. Between 2020 and 2024 he mentored more than 200 university students and interns in Nairobi. He writes every Just Out Tech article from the original research paper.