IoT Sensors and Actuators Explained with Examples
A sensor converts a physical quantity (temperature, light, distance, motion) into an electrical signal; an actuator converts an electrical command into a physical effect (light, motion, heat, flow). Almost every IoT device has at least one of each.
Common sensors and what they output
| Measures | Example parts | Output | Watch out for |
|---|---|---|---|
| Temperature and humidity | DHT22, SHT31, DS18B20 | Digital (one-wire / I2C) | Self-heating, slow response |
| Distance | HC-SR04 (ultrasonic) | Pulse width | Soft surfaces absorb sound; 5 V parts need level shifting on ESP32 |
| Light | LDR, BH1750 | Analog / I2C | LDR is non-linear and uncalibrated |
| Soil moisture | Capacitive sensor | Analog | Needs calibration per soil; see the ESP32 tutorial |
| Motion / presence | PIR | Digital | Detects movement, not presence |
| Acceleration | MPU6050, ADXL345 | I2C / SPI | Needs filtering for vibration analysis |
Common actuators
- Relay or solid-state relay: switches a higher-power load. Use electrical isolation and respect mains-safety rules.
- MOSFET / transistor driver: switches DC loads and PWM-controls speed or brightness.
- Servo and stepper motors: controlled positioning.
- Buzzers, LEDs, displays: local feedback to a person.
Analog or digital?
An analog sensor outputs a voltage that the microcontroller measures with an ADC; resolution is limited (10-bit on Arduino Uno, 12-bit on ESP32). A digital sensor does the conversion internally and sends numbers over a bus, which is usually more accurate and less noisy. Prefer digital sensors when a good one exists.
How to choose
- Write down the range and accuracy you actually need.
- Check the supply voltage and logic level against your board (3.3 V on ESP32).
- Read the datasheet’s response time and self-heating notes.
- Plan how you will calibrate and verify it against a reference.
Practise
Start with Arduino, where sensors and actuators are the core of the course, and use IoT Fundamentals for the system context.
References
- Arduino documentation: docs.arduino.cc
- Espressif, ESP32 Series Datasheet: espressif.com
Related reading
IoT Fundamentals
IoT Learning Roadmap for Engineering Students: What to Learn and When
A semester-by-semester IoT roadmap for engineering and diploma students, from electronics basics to a documented project.
IoT Fundamentals
How Does the Internet of Things Work? A Step-by-Step Walkthrough
Follow one temperature reading from a sensor to a dashboard and back to an actuator, and see what happens at every step of an IoT system.
IoT Fundamentals
IoT Course Syllabus: What Should Beginners Learn?
A topic-by-topic IoT syllabus for beginners, in a sensible order, with what to practise at each stage.
IoT Fundamentals
IoT vs Embedded Systems: Key Differences
Embedded systems and IoT overlap heavily but are not the same. Here is what each covers and how to decide which to learn first.
Learning from your city?
City guides show how online IoT training works from where you are, with project themes for your area.