Sensor Technology and Actuators in IoT
A tank sensor measures water level and a pump changes it. Switching the pump on below a low mark and off above a higher mark prevents rapid switching near a single threshold. The two devices therefore have different roles in one feedback loop.
1. What is a Sensor? (The “Senses” of IoT)
In an IoT system, sensors act just like human sense organs (eyes, ears, skin, and nose).
A sensor is an electronic hardware component that detects physical changes in its environment (such as heat, light, sound, motion, pressure, or moisture) and converts that physical quantity into a measurable electrical signal (voltage or digital bits).
💡 Real-Life Analogy:
When you touch a hot cup of tea, sensory nerves in your fingers feel the heat and send an electrical signal to your brain. Similarly, a DHT11 temperature sensor measures room heat and sends voltage numbers to an Arduino or ESP32 microcontroller!
2. Transducer vs. Sensor vs. Actuator
Students often get confused between these three terms in digital electronics and IoT. Here is the simple difference:
Sensors convert physical conditions into signals the controller can process. Actuators convert a control decision back into a physical change.
- Physical Stimulus — Heat, Light, Force, Sound
- Sensor (Input) — Converts physical change to electrical signal
- Microcontroller / Cloud — Processes logic & makes decisions
- Actuator (Output) — Converts electrical signal into physical action
| Parameter | Transducer | Sensor | Actuator |
|---|---|---|---|
| Basic Job | Any device that converts one form of energy into another | An input device converting a physical parameter into an electrical signal | An output device converting an electrical signal into physical movement/action |
| Signal Direction | Two-way (Input or Output) | Input only (Environment → Controller) | Output only (Controller → Environment) |
| Examples | Thermocouple, Microphone, Speaker | LDR light sensor, PIR motion sensor | Solenoid valve, DC motor, Relay switch |
View diagram · Physical World Interaction Pipeline
3. Classification of Sensors
In DAVV BCA exams, sensors are classified in two main ways:
A. Based on Power / Energy (Active vs. Passive)
- Active Sensors: Require their own external power to operate. They emit an energy beam or sound wave into the environment to detect changes.
- Example: HC-SR04 Ultrasonic Sensor sends out sound waves and measures the echo time; Radar emits radio waves.
- Passive Sensors: Do not emit any energy of their own. They simply detect the natural energy already present in the surroundings.
- Example: PIR (Passive Infrared) Sensor detects body heat naturally emitted by humans; LDR (Light Dependent Resistor) absorbs sunlight.
B. Based on Output Signal (Analog vs. Digital)
- Analog Sensors: Produce a continuous voltage signal proportional to the physical measurement. Microcontrollers without built-in ADCs (like Raspberry Pi) need an external ADC chip to read them.
- Example: LM35 temperature sensor (gives 10 mV for every 1°C increase).
- Digital Sensors: Produce digital 1s and 0s directly (HIGH/LOW logic levels or serial data over I2C/SPI buses).
- Example: DHT22 temperature and humidity sensor, DS18B20 digital temperature probe.
4. Popular Sensors Widely Used in IoT Projects
| Sensor Name | What it Measures | Output Type | Common IoT Project |
|---|---|---|---|
| DHT11 / DHT22 | Temperature & Humidity | Digital (1-wire serial) | Smart farm greenhouse, room thermostat |
| HC-SR04 | Distance via ultrasonic sound waves | Digital (Trigger pulse & Echo time) | Smart overhead water tank monitor, obstacle-avoiding robot |
| PIR (HC-SR501) | Human or animal movement via body heat | Digital (HIGH / LOW) | Automatic hallway light, home burglar alarm |
| LDR Sensor | Light intensity (Lux) | Analog (Resistance drops as light rises) | Automatic streetlight switch (turns ON at sunset) |
| MQ-2 / MQ-135 | Smoke, LPG cooking gas, air quality | Analog + Digital pin | Kitchen LPG leak alarm, smart city air pollution checker |
| BMP280 | Air pressure, altitude, and temperature | Digital (I2C / SPI) | Weather forecast station, drone altitude lock |
5. What is an Actuator? (The “Muscles” of IoT)
If sensors are the eyes and ears of an IoT system, actuators are its hands and legs.
An actuator is an electro-mechanical device that receives an electrical command from a microcontroller or cloud server and turns it into physical movement, rotation, or mechanical switching.
Common Types of IoT Actuators:
A motor produces movement and a valve changes the flow of a liquid or gas. A relay lets a small control signal switch another electrical circuit.
- 1. Electromagnetic Relays — Electrically controlled switches that let a low-power 5V microcontroller safely turn ON/OFF heavy 230V AC home appliances (geysers, lights, fans).
- 2. DC Motors & Steppers — Continuous rotation motors used in smart robot vacuum cleaners, automatic conveyor belts, and motorized curtains.
- 3. Servo Motors (SG90) — Provide precise angular rotation (from 0° to 180°) for smart door locks, robot arms, and camera pan-tilt heads.
- 4. Solenoid Valves — Electromagnetic water valves that open or shut pipes instantly in automated farm drip irrigation systems.
View diagram · Common Actuators in IoT Applications
6. How Sensors and Actuators Work Together: A Smart Farm Example
A moisture reading reaches the controller, which applies the watering rule. The valve changes water flow and later readings reveal the effect.
- Soil Probe — Measures physical soil moisture level drops below threshold
- ESP32 MCU — Processes logic: triggers digital GPIO pin HIGH when moisture < 30%
- 5V Relay Actuator — Closes the high-voltage 230V AC electrical contact
When the soil moisture sensor detects that moisture has reached above 75%, it sends the updated voltage, the microcontroller turns the relay OFF, and the water pump shuts down automatically. Zero water is wasted!
View diagram · Automated Sensor-to-Actuator Irrigation Loop
💡 DAVV Exam Preparation Tips
5-Mark Question: “Define sensor and actuator with suitable real-life examples.”
- Sensor: An input device that detects physical changes (temperature, light, motion) and converts them into electrical signals (e.g., LDR, DHT11).
- Actuator: An output device that converts electrical signals into physical movement or action (e.g., Relay switch, DC motor).
- Draw the simple 3-box diagram: Sensor (Input) ➔ Microcontroller ➔ Actuator (Output).
5-Mark Question: “Differentiate between Active and Passive sensors.”
- Active Sensors: Require external power and emit their own wave/signal to measure (e.g., Ultrasonic HC-SR04 sound waves, Radar).
- Passive Sensors: Do not emit anything; they detect natural energy already in the surroundings (e.g., PIR detecting body heat, LDR absorbing light).
10-Mark Question: “Explain the role of sensors and actuators in IoT architecture. Describe the working principle of any three popular IoT sensors.”
- Give the comparison table: Transducer vs. Sensor vs. Actuator.
- Detail three popular sensors:
- DHT11: Temperature and humidity sensor using capacitive sensing.
- HC-SR04: Ultrasonic distance sensor using sound pulses:
Distance = (Time × Speed of Sound) / 2.- PIR Sensor: Detects human movement by reading infrared heat radiation.
- Detail actuators (Relays, Servo motors, Solenoid valves).
- Explain the closed-loop smart farm irrigation example.