Emerging technology | Connected physical devices

The Internet of Things: software in the physical world

Understand how sensors, embedded computers, networks, and services connect physical objects—and how reliability, security, privacy, and long-term maintenance shape a responsible IoT system.

EMERGING TECHNOLOGYINTERNET OF THINGS GUIDEBeginner to intermediate
IoT data flows from a physical sensor to an applicationA sensor feeds an embedded device, which communicates through a network to edge or cloud services and then presents information to a person or automated system. Physical worldSensor + deviceNetworkEdge / cloudApplication measurements need context, secure transport, and an intentional response
Figure 1. IoT is a complete system: devices, connectivity, data services, people, and operating procedures.

What the Internet of Things means

The Internet of Things (IoT) describes physical devices with sensors, software, and network connections that collect or exchange data. Devices range from small environmental sensors and household equipment to vehicles, industrial controllers, and medical monitors.

An IoT system is more than “putting a sensor online.” It must convert a physical measurement into useful information, transmit or process that information, manage device identity and updates, and define what happens when readings are missing or wrong. A connected product also has to work with power limits, physical wear, changing networks, and real users.

IoT overlaps with embedded systems, networking, cloud computing, robotics, and cybersecurity. The internet is only one possible connection: some devices communicate over a local network or gateway and may not need direct access to public services.

Inside a connected device

A typical device combines a sensor that observes a physical quantity, a microcontroller or processor, memory, communication hardware, firmware, and a power source. Some systems also include actuators that affect the world, such as a motor, relay, valve, or display. A device may be severely limited in memory, processing speed, and battery capacity.

Sensors require calibration and have limits. Temperature sensors have tolerances; cameras depend on lighting and viewpoint; GPS readings may be unreliable indoors. Firmware should record units, timestamps, device identity, and relevant quality information so later software can interpret a measurement correctly.

Sampling frequency is a design choice. Taking measurements more often can reveal quick changes but consumes more power, bandwidth, and storage. A slow environmental trend may need only periodic samples, while an industrial safety control may require much faster local measurement and response.

Embedded software and real-time behavior

Firmware reads sensors, applies basic checks or filters, communicates, and may control actuators. Real-time requirements specify deadlines and predictable response, not simply maximum speed. A device that controls a physical process should have a safe behavior for missed deadlines, stale readings, and disconnected networks.

Watchdogs, bounded queues, and explicit error states can help a device recover from some failures. A reboot is not a substitute for diagnosing recurring faults, and a device should not perform an unsafe action just because a value is absent or out of range.

Networks and communication protocols

IoT devices use communication options selected for range, energy, data rate, reliability, and cost. Wi-Fi can carry substantial data but may consume more power than low-energy radio options. Bluetooth Low Energy is common for nearby devices; cellular options provide wider coverage with subscription and energy trade-offs. Low-power wide-area technologies can send small messages over longer distances.

Protocol layers define how messages are delivered and interpreted. Internet Protocol can route packets; application protocols define message structure and delivery behavior. MQTT uses a publish-and-subscribe model with a broker, while HTTP follows a request-and-response model familiar from the web. CoAP is designed for constrained devices and networks. No single protocol is right for every environment.

Radio links fail, networks partition, and devices can be offline for long periods. Applications need policies for retries, message expiration, deduplication, and ordering. Retrying indefinitely may drain a battery or overwhelm a service; use bounded backoff and define what can safely be queued.

Gateways can translate protocols, aggregate data, enforce local policy, and connect nearby devices to broader networks. They add a useful boundary, but also become components that must be secured, monitored, updated, and made reliable.

From device to application

A common architecture has devices send messages to a gateway or ingestion service. The service authenticates the device, validates the message, routes data to storage or stream processing, and exposes information to dashboards or other applications. A command may travel back to a device through a separate controlled path.

Device identity should be unique, and enrollment should establish which organization or owner is allowed to manage a device. Shared default passwords undermine this boundary. Credentials need a rotation and revocation strategy, especially for devices installed in locations that are difficult to reach.

Cloud processing is useful for fleet-wide analysis, long-term storage, and management dashboards. Local or edge processing is important when a decision must be quick, connectivity is intermittent, or raw data is sensitive. Many systems use both: immediate decisions locally, summaries and maintenance information remotely.

Worked example: a greenhouse monitor

  1. A calibrated sensor samples temperature and soil moisture at an appropriate interval.
  2. Firmware attaches units, timestamp, device identifier, and a quality flag.
  3. A local gateway stores readings during a network outage and forwards them later.
  4. A service validates readings, stores a history, and alerts on sustained thresholds rather than one noisy sample.
  5. A person reviews the alert and decides whether to adjust irrigation or ventilation.

The system should specify behavior for a failed sensor, a stuck pump, an incorrect clock, duplicate readings, and an unavailable network. Automating an action requires considering its consequences, not only the ease of sending a command.

Managing sensor data

Sensor data is time-series data: observations associated with time and often a location, device, unit, and status. Data may arrive late, out of order, duplicated, or not at all. Systems should preserve the event time measured by a device while also tracking when the service received it.

Validation can detect impossible ranges, malformed messages, unknown devices, and abrupt changes. Filtering can reduce noise, but excessive smoothing may hide a real event. Keep raw or sufficiently detailed data when later audits or recalibration matter, and record transformations used to derive summaries.

Not every measurement should be collected forever. Define retention periods, access rules, deletion procedures, and whether data can identify a person or reveal sensitive habits. Aggregation and minimization can reduce exposure while preserving the information needed for a task.

Reliability and device lifecycle

IoT devices may be deployed in large fleets and remain in service for years. Their lifecycle includes manufacture, enrollment, installation, operation, software updates, repairs, ownership changes, and decommissioning. A team needs an inventory that records device model, software version, owner, location where appropriate, and support status.

Remote updates should be authenticated, integrity-checked, and recoverable if installation fails. Staged rollouts reduce the chance that one defective release disables an entire fleet. Devices need a safe fallback or recovery process, and operators need to know which devices missed an update.

Monitoring should distinguish device health from data quality and network health. A heartbeat can show that a device is online, but it does not prove its sensor is calibrated or that its readings make sense. Define alerts that help an operator take action rather than merely generating noise.

Hardware eventually becomes unsupported or physically unreliable. Plan spare parts, battery replacement, software support windows, and secure disposal before deployment. An IoT system is not complete if devices cannot be maintained or safely removed.

Security, privacy, and safety

Connected devices expand the attack surface. A compromised device can expose data, join a botnet, issue unauthorized commands, or become a stepping stone into another network. Security must cover device hardware and firmware, communication, cloud accounts, update infrastructure, and the processes used by people operating the system.

Privacy depends on what is collected and what can be inferred. A temperature reading may seem harmless, while occupancy or location patterns can reveal daily routines. Collect only what the product needs, explain the use clearly, limit retention, and give people meaningful control where applicable.

When devices can affect people or infrastructure, threat modeling must include physical outcomes. Use independent safety limits, manual overrides, and fail-safe behavior appropriate to the hazard. A network command should not bypass the protections required by the physical system.

Applications and design trade-offs

IoT is used in building energy monitoring, equipment maintenance, agriculture, logistics, environmental observation, and assistive technology. Benefits can include earlier fault detection and better visibility into processes. They are not automatic: sensors can be inaccurate, connectivity can be unreliable, and poor deployment can create maintenance burdens or privacy risks.

Before building a connected product, ask whether connectivity is necessary, what decision the data supports, who owns the device, and how the system behaves offline. Compare a local standalone design with a networked one. Simpler systems may be safer, less expensive, and easier to maintain.

Compact glossary

Sensor
A component that measures a physical quantity.
Actuator
A component that causes a physical change in response to a command.
Firmware
Software that controls a device’s hardware and core behavior.
Gateway
A device or service that connects networks or protocols and may process data locally.
Telemetry
Measurements and status information sent from a system for monitoring.
Edge computing
Processing performed near the devices or data source rather than only in a remote service.

References and further reading

  1. National Institute of Standards and Technology. NISTIR 8259: Foundational Cybersecurity Activities for IoT Device Manufacturers. Publication.
  2. Internet Engineering Task Force. Constrained Application Protocol (CoAP), RFC 7252. Standard.
  3. OASIS. MQTT Version 5.0. Specification.
  4. Internet Society. The Internet of Things. Overview and resources.

Try it yourself

  1. Design the message fields for a temperature sensor and explain why each field is needed.
  2. Compare Wi-Fi and a low-power radio for a battery-powered outdoor sensor.
  3. Describe how a monitoring system should handle duplicate, delayed, and missing readings.
  4. List a secure update and recovery plan for a fleet of devices.
  5. Identify one privacy risk in a connected home device and a way to reduce it.

Remember: a successful IoT product is a maintainable, secure system that behaves predictably in the physical world—not merely a sensor connected to a network.

Keep exploring

Try another topic

A fresh topic suggestion is ready for you.

Explore a topic
0% read