Theory
How does a machine feel the world?
SmartHostel's dashboard shows the tank is 24 degrees and the corridor just detected motion. But a computer is a box of switches: it knows nothing of heat or movement.
So how does warmth in a tank become the number 24 on a screen?
The answer is sensor technology: the machinery of PERCEPTION, the foundation beneath both M2M and IoT. A smart system without sensing is a brilliant brain with no eyes, ears or skin.
Theory
Sensor, formally
A sensor is a device that detects a physical quantity (temperature, light, pressure, motion, humidity...) and converts it into a measurable signal, usually electrical.
The broader term is transducer: any device converting one form of energy into another. In that language:
- a sensor is an input transducer (world in, signal out)
- an actuator is an output transducer (signal in, action out: covered in Unit 3)
Every reading on the dashboard began as some physical quantity a sensor turned into electricity.
Theory
The five senses, in silicon
Your skin turns warmth into nerve signals; your ear turns air-pressure waves into them; your eye turns light into them. Your brain never touches heat, sound or light directly: it reads the SIGNALS your senses convert.
Sensors are silicon senses. A temperature sensor is skin, a microphone is an ear, a camera is an eye: each converting its slice of the physical world into the one language the processor understands: electricity.
Theory
Analog, digital, and the converter between
Sensors output signals in 2 flavours:
- analog: a continuous voltage that varies smoothly with the quantity: an LM35 temperature sensor whose voltage rises steadily as the tank warms
- digital: a discrete output, often just on/off: a PIR motion detector saying simply "motion" or "none"
A processor reads NUMBERS, not voltages, so an analog signal passes through an ADC (Analog-to-Digital Converter) that samples the smooth voltage into a digital value. 24.3 degrees on the dashboard is an analog warmth, converted.
Quiz
An LM35 sensor outputs a voltage that rises smoothly as temperature increases. To display 24.3 on a digital dashboard, what MUST happen to that signal?
- Nothing: processors read voltages directly
- It passes through an ADC (analog-to-digital converter) that turns the continuous voltage into a number
- It is amplified until it becomes a whole number on its own
- The sensor must be replaced with a digital one
Show the answer
It passes through an ADC (analog-to-digital converter) that turns the continuous voltage into a number
A continuous (analog) voltage means nothing to a processor that thinks in discrete numbers, so an ADC samples the voltage and yields a digital value the system can store, compare and display: the essential bridge for every analog sensor. Option A skips the whole reason ADCs exist. Option C confuses amplification (making a signal bigger) with conversion (changing its form). Option D throws away a perfectly good analog sensor whose precise continuous reading is often exactly what you want: the ADC lets you keep it. Analog to number: that is the ADC's one job.
Think first
Sensor or actuator, transducer either way
The tank has a temperature sensor and a pump. Both are transducers. Classify each as input or output transducer, and state what energy each converts to what. Then tap.
Show the answer
The temperature sensor is an INPUT transducer: it converts a physical quantity (heat energy) INTO an electrical signal: world in, signal out. The pump is an OUTPUT transducer, i.e. an actuator: it converts an electrical signal INTO physical action (mechanical energy, water moving): signal in, action out. The symmetry is the insight: sensors and actuators are the 2 directions of the same transducer idea, the perception and the action halves of every IoT device: which is exactly why Unit 3 pairs them.
Watch out
Sensing concept slips
Sensor = transducer, exactly: a sensor is one KIND of transducer (input); actuators are transducers too. Do not equate the general term with one case.
Forgetting the ADC for analog sensors: an analog reading needs conversion before a processor can use it; omitting the ADC leaves the number unexplained.
Ignoring characteristics: range, sensitivity, accuracy, resolution and response time decide whether a sensor SUITS a job: a slow sensor misses fast events, a low-resolution one blurs fine changes.
Theory
The bedrock both worlds share
Sensing is what M2M and IoT stand on equally: no perception, no smart anything. That is why this lesson sits between meeting M2M and comparing it with IoT: the shared foundation, named before the differences. Unit 3 will open the sensor CATALOGUE by type (temperature, gas, ultrasonic, and 6 more) with the full usage table; here you learned the how, there you learn the which.
Summary
Key takeaways
- A sensor detects a physical quantity and converts it into a measurable (usually electrical) signal.
- Transducer is the general term: a sensor is an input transducer, an actuator an output transducer.
- Analog sensors give a continuous voltage (LM35); digital sensors give discrete/on-off output (PIR).
- An ADC (analog-to-digital converter) turns an analog voltage into a number a processor can read.
- Sensor characteristics: range, sensitivity, accuracy, resolution, response time: decide fitness for a job.
- Sensing is the shared bedrock of both M2M and IoT.
- Memory hook: sensors are silicon senses; the ADC translates their feelings into numbers.