Identify and Categorise Common Sensors and Actuators Used in IoT
Lesson 4.1 — Identify and Categorise Common Sensors and Actuators Used in IoT
IoT systems interact with the physical world through two classes of component: sensors that perceive the world, and actuators that act upon it.
What is a Sensor?
A sensor is a device that detects a physical, chemical, or environmental condition and converts it into an electrical signal that a microcontroller can process. Sensors are the IoT system’s perception layer.
Sensor Classification
1. By Measurand (What is being measured)
| Category | Examples | Typical IoT Applications |
|---|---|---|
| Environmental | Temperature, humidity, pressure, altitude, light, UV radiation, rainfall | Weather stations, HVAC, greenhouses |
| Chemical / Gas | CO2, CO, methane, LPG, smoke, air quality index, VOCs | Safety alarms, air quality monitors, smart kitchens |
| Motion / Position | Acceleration, gyroscope, orientation, displacement, proximity, distance | Wearables, vehicle tracking, robotics, gesture control |
| Biological | Heart rate, SpO2, body temperature, galvanic skin response | Health monitoring, fitness bands, patient monitors |
| Electrical | Voltage, current, power, energy consumption | Smart meters, solar monitoring, industrial energy management |
| Mechanical | Force, pressure, vibration, torque, flow rate, level | Industrial IoT, water management, structural monitoring |
| Optical | Visible light, infrared, colour detection, laser distance | Security cameras, gesture sensors, spectroscopy |
| Acoustic | Sound level (dB), ultrasonic distance, seismic activity | Noise monitoring, proximity detection, earthquake sensors |
2. By Signal Output Type
| Output type | Description and examples |
|---|---|
| Digital output | Two states only: HIGH or LOW. Examples: PIR motion sensor, reed switch, button, door sensor. Read with digitalRead(). |
| Analog output | Continuous voltage proportional to measurand. Examples: LDR, NTC thermistor, soil moisture, potentiometer. Read with analogRead(). |
| Serial — OneWire | Single-wire digital protocol. Examples: DS18B20 temperature sensor. Supports multiple devices on one wire. |
| Serial — I2C | Two-wire bus (SDA+SCL). Examples: BME280, MPU6050, SSD1306. Multiple devices share the bus. |
| Serial — SPI | Four-wire bus (MOSI, MISO, SCK, CS). Examples: MAX6675 thermocouple, SD card. Fast and reliable. |
| Serial — UART | Two-wire (TX, RX). Examples: GPS module (NEO-6M), fingerprint sensor, GSM modem. |
3. By Power and Sensitivity
| Type | Description and examples |
|---|---|
| Active sensors | Require their own power supply to operate. Most digital sensors are active. Examples: PIR, ultrasonic, GPS. |
| Passive sensors | Derive energy from the measurand itself. Examples: thermocouple (generates voltage from heat), solar cell. |
| Contact sensors | Must physically touch the subject. Examples: temperature probe, soil moisture probe. |
| Non-contact sensors | Measure without physical contact. Examples: infrared temperature sensor, ultrasonic distance, PIR motion. |
Sensor Reference Catalogue
What is an Actuator?
An actuator is a device that converts an electrical signal into a physical action. It is the IoT system’s output layer — the component that affects the physical world in response to processed sensor data.
Actuator Classification and Reference Catalogue
| Actuator | Output type | Control | Key notes |
|---|---|---|---|
| LED | Visible light | Digital on/off or PWM brightness | Standard 5mm LED: 20 mA max. Always use series resistor. |
| Relay Module | Mains switching (230 V AC / high DC) | 3.3–5 V digital signal. Most modules are active-LOW. | NO / NC / COM contacts. Galvanic isolation from mains. NEVER touch mains connections. |
| Buzzer | Sound output | Active: digitalWrite(HIGH). Passive: tone(pin, freq) |
Active buzzes at fixed frequency; passive needs PWM tone signal. |
| DC Motor + L298N | Continuous rotation | ENA: PWM speed. IN1/IN2: direction. Motor supply: 5–35 V | Always add flyback diodes. Use separate motor power supply from MCU. |
| Servo Motor | Positional rotation 0–180° | PWM 50 Hz, 1–2 ms pulse. servo.write(angle) |
Power from 5 V dedicated supply. SG90: 1.8 kg·cm. MG995: 13 kg·cm. |
| Solenoid Valve | Fluid flow control (open/close) | 12 V coil via relay or MOSFET. Too much current for direct GPIO. | ALWAYS add flyback diode across coil. Use external 12 V supply. |
Sensor vs Actuator Summary
| Property | Sensor | Actuator |
|---|---|---|
| Direction | Input → MCU (perceives the world) | MCU → Output (acts on the world) |
| Signal | Provides data (voltage, digital state, serial packet) | Receives command (digital, PWM, relay trigger) |
| Power role | Usually low current (≤ 20 mA GPIO) | Often high current (may need driver circuit) |
| MCU protection | Pull-up/pull-down resistors for digital inputs | Flyback diodes, optocouplers for inductive loads |


