Internet of Things: Sensors, Edge and Cloud IoT

Internet of Things: A Complete Guide to How IoT Works

12 min read5 June 2026

The internet of things is a network of physical objects that collect information, exchange data and sometimes act on their surroundings through software-controlled connections. An IoT system might monitor room temperature, track refrigerated deliveries or detect unusual vibration in machinery. Its essential components are sensors or actuators, a computing device, a communications link and software that turns messages into useful decisions. Some processing happens beside the equipment; some happens in cloud services. A successful system does more than display readings: it delivers trustworthy information, handles interruptions safely and protects devices and data throughout their operating lives, including maintenance and eventual retirement.

To understand how IoT works, follow a measurement from the physical world to a useful response. A sensor measures a condition, a microcontroller reads it, and a network carries the result to an application. Messaging protocols such as MQTT organise the exchange, while edge processing and cloud services divide the analytical work. This guide explains that complete path through a cold-storage monitoring project, including component choices, message design, security and testing. It also distinguishes consumer and industrial requirements without drifting into qualifications or career planning. The aim is to make the technical decisions behind practical IoT projects understandable and testable.

Key points

  • IoT connects physical measurements and actions with networked software.
  • Place processing at the edge or in the cloud according to operational needs.
  • Reliable messaging still requires data validation, buffering and failure testing.
  • Build security into provisioning, operation, updates and retirement.

What is IoT, and what makes a device part of it?

An object becomes part of an IoT system when computing and connectivity let it exchange information about, or influence, the physical world. IoT devices include environmental monitors, connected meters, wearable sensors and controllers operating pumps or valves. They do not necessarily connect directly to the public internet: a Bluetooth sensor can communicate through a nearby gateway, and an industrial installation may remain on a private network. The important distinction is the integration of physical processes with networked software. A standalone digital thermometer displays a measurement locally; a connected thermometer can also record trends, report faults and trigger a remote notification.

The basic operating loop is sensing, communicating, interpreting and acting. Not every implementation needs all four stages: an asset tracker may only report location, while an irrigation controller also operates an actuator. Connectivity itself does not make a device intelligent, and artificial intelligence is optional rather than a defining requirement. Many reliable systems use straightforward thresholds, timers and rules. Before selecting hardware, specify the physical quantity to measure, the decision the measurement supports and the consequences of missing or incorrect data. Those requirements determine suitable accuracy, reporting intervals, connectivity and failure behaviour more effectively than a list of fashionable technologies.

How do sensors and microcontrollers capture reliable data?

IoT sensors convert physical conditions into signals that electronics can interpret. Temperature, humidity, light, pressure and acceleration sensors differ in accuracy, resolution, response time and environmental tolerance. An analogue sensor may require signal conditioning and an analogue-to-digital converter; digital sensors commonly communicate over I²C or SPI. A microcontroller reads the signal, applies any necessary conversion and packages the measurement. It usually offers modest memory and processing resources alongside hardware interfaces and low-power modes. A single-board computer can support a richer operating system and heavier processing, but generally introduces greater power demands and more software to maintain over its service life.

Sensor selection must account for installation, not just the data sheet. A temperature probe beside a refrigeration outlet may not represent the warmest stored goods. Condensation, cable length, electromagnetic interference and enclosure design can all affect performance. Calibration establishes the relationship between readings and a reference, while validation checks whether the installed arrangement meets its intended purpose. Firmware should detect implausible values, missing responses and disconnected probes instead of silently treating them as valid measurements. Each reading should carry units and a useful timestamp or sequence number. Battery-powered nodes also need a power budget covering sampling, processing, transmission and sleep.

  • Accuracy describes closeness to a reference; resolution describes distinguishable increments.
  • Sampling frequency and transmission frequency can be different.
  • Sensor faults should produce explicit status information.

How should you organise IoT architecture and connectivity?

A useful IoT architecture separates responsibilities into device, connectivity, processing and application layers. Devices acquire measurements or operate equipment. Connectivity moves messages over local links and wider networks. Processing validates, stores and interprets those messages, while applications expose dashboards, alerts or business workflows. A gateway may bridge local protocols, aggregate readings and enforce network boundaries. These are logical responsibilities rather than mandatory separate products: one gateway can perform several roles, and a small installation may send measurements directly to a hosted service. Clear boundaries still matter because they make failures easier to diagnose and components easier to replace or upgrade.

Choose connectivity according to range, power, bandwidth, deployment conditions and ownership costs. Ethernet suits fixed equipment where cabling is practical, while Wi-Fi uses local infrastructure but may be unsuitable for very constrained batteries. Bluetooth Low Energy often links nearby devices to a gateway. Low-power wide-area options, including LoRaWAN and cellular technologies such as LTE-M or NB-IoT, suit some remote monitoring needs, subject to local coverage and deployment arrangements. No option is universally best. Check payload limits, expected latency, radio conditions and network availability at the actual site. Then define how devices reconnect, queue readings and indicate that communications have failed.

How does MQTT move messages between devices and applications?

MQTT is a lightweight publish-and-subscribe messaging protocol commonly used in IoT. A device publishes a message to a topic on a broker, and authorised subscribers receive messages matching their subscriptions. For example, a monitor could publish to coldstore/site-a/unit-03/telemetry while an alerting service subscribes to that site's units. Publishers do not need to know which applications consume their data, which reduces coupling between components. MQTT commonly runs over TCP, with TLS providing transport encryption and server authentication. Client authentication and topic-level authorisation remain essential: encryption alone does not decide which device may publish a reading or receive a control command safely.

MQTT offers three quality-of-service levels: QoS 0 provides at-most-once delivery, QoS 1 at-least-once delivery, and QoS 2 exactly-once delivery within the relevant protocol exchange. QoS 1 can create duplicates, so applications should recognise repeated message identifiers. QoS 2 does not guarantee exactly-once business actions across databases or downstream services. Retained messages let new subscribers receive a topic's latest retained value, but that value may be stale unless it includes a timestamp. A Last Will can signal unexpected disconnection after detection, rather than instantaneously. Persistent sessions can support queued delivery under configured conditions, but they do not replace device-side buffering or storage.

  • Keep topic structures predictable and scoped to authorised devices.
  • Include a schema version, device identifier, timestamp and units.
  • Treat retained control commands cautiously to avoid unintended replay.

How do you choose between edge computing and cloud computing?

Edge computing processes information on a device or nearby gateway rather than sending every decision to a remote service. It can reduce latency, limit bandwidth consumption and preserve useful behaviour during an internet outage. Examples include filtering noisy measurements, detecting an open door locally and compressing vibration data into summary features. The edge computing vs cloud computing decision is therefore about placing workloads, not choosing one universal winner. Local resources remain limited, and distributed software is harder to update and observe. An edge rule also needs clear ownership: duplicated logic across devices and cloud applications can otherwise produce inconsistent responses.

Cloud services are useful for centralised storage, fleet management, cross-site analysis and interfaces accessed from multiple locations. They can combine device readings with maintenance records or historical trends that are unavailable to a small controller. However, network round trips, outages, data residency requirements and recurring resource consumption must inform the design. A hybrid arrangement often works well: validate readings and handle urgent local conditions at the edge, then send telemetry to the cloud for longer-term analysis and notifications. Safety-critical control needs a separate engineering assessment; a cloud dashboard or ordinary connected microcontroller should not be assumed to provide a certified safety function.

How can you build a cold-storage monitoring IoT project?

Consider a worked project that monitors a refrigerated cabinet without controlling its cooling equipment. Use a suitably rated temperature probe, a door-position sensor and a microcontroller with appropriate connectivity. Begin with explicit requirements: the acceptable temperature range, maximum tolerated excursion duration, installation environment and who receives alerts. These limits depend on the stored goods and applicable procedures, so they should not be guessed from a generic tutorial. For an illustrative prototype, sample every ten seconds and publish a summary each minute, while reporting door changes promptly. These intervals are design examples, not regulatory recommendations or guarantees of suitability for operational use.

Firmware reads both sensors, checks validity and attaches a device identifier, sequence number, timestamp and status. It publishes telemetry through TLS-protected MQTT to an authorised topic. A local rule can drive an indicator when a configured condition persists, while a bounded queue preserves readings during disconnection. In the cloud, an ingestion service validates the schema, handles duplicates and writes measurements to time-series storage. A dashboard shows temperature, door state and data freshness. Alerts distinguish temperature excursions from missing telemetry, with acknowledgement and escalation handled explicitly. Recovery messages should identify when normal conditions return rather than merely stopping further warning notifications.

  • Example topic: coldstore/site-a/unit-03/telemetry.
  • Use separate event time and ingestion time where appropriate.
  • Mark delayed readings so they are not mistaken for current conditions.

How do you secure and test the complete IoT system?

Security begins with a threat model covering physical access, stolen credentials, hostile networks and compromised services. Give each device a unique identity rather than sharing one fleet-wide password. Protect private keys using suitable hardware-backed storage where available, restrict broker permissions and validate server certificates. Network segmentation reduces exposure but does not replace authentication. Signed firmware updates help prevent unauthorised code installation, while secure boot can enforce verification at startup. Define how credentials rotate, how vulnerable devices receive fixes and how failed updates recover. Provisioning, support duration and decommissioning are security requirements too, including credential revocation and removal of sensitive stored data.

Test failures as deliberately as normal operation. Disconnect the network, restart the broker, interrupt device power and feed the application duplicate, delayed or malformed messages. Check how the system behaves when its clock is wrong, its queue fills or its sensor stops responding. Verify that reconnection does not flood downstream services and that obsolete readings cannot trigger misleading current-state alerts. Track device health, firmware versions, connection status and update outcomes alongside measurements. Security testing should include denied topic access and rejected invalid certificates. Finally, document acceptance criteria so the prototype is judged against operational requirements rather than whether a dashboard looks convincing.

What changes when IoT becomes industrial IoT?

The IoT vs IIoT distinction concerns context and engineering priorities rather than two completely separate technologies. Industrial IoT applies connected sensing and software to industrial operations, including production lines, utilities and process monitoring. It often faces stricter availability, environmental, maintenance and safety requirements than a domestic connected product. Existing operational technology may use PLCs, SCADA systems and established industrial protocols. Integrating these systems requires care over network boundaries, change control and equipment lifecycles. A monitoring gateway should not casually become a route for remote control. Read-only integration can reduce risk, although it still requires security review and validation with operations teams.

Industrial deployment also changes how a project is evaluated. Installation access, calibration records, spare parts, maintainability and controlled updates may matter as much as message throughput. Start with a bounded monitoring use case, prove data quality and failure behaviour, then expand only when ownership and support are clear. For structured study of these technical foundations, the Erudex [Internet of Things: Sensors, Edge and Cloud IoT](/courses/internet-of-things) course can support learning alongside hands-on implementation. Use [practice tests](/practice) to identify knowledge gaps; a course certificate should complement, not replace, evidence that a system has been designed, secured and tested appropriately for its intended deployment.

Frequently asked questions

What is IoT in simple words?
IoT means connecting physical things to software so they can share information or respond to instructions. A connected temperature sensor, for example, measures a room and sends readings to an application that records trends or raises an alert. The system includes more than the sensor: it also needs computing, communications and software that interprets the data. Devices may communicate through a local gateway rather than directly over the internet, and they do not need artificial intelligence.
Can IoT devices work without an internet connection?
Yes, if their design supports local operation. Sensors can record measurements, gateways can process messages and controllers can apply local rules without reaching a cloud service. Remote dashboards and notifications may stop working until connectivity returns. Devices need enough storage for any required backlog and a defined policy for handling full queues. After reconnecting, applications must distinguish historical uploads from live readings. Internet independence is therefore a designed capability, not something every IoT product automatically provides.
Why is MQTT used in IoT instead of HTTP?
MQTT suits ongoing exchanges between many devices and applications because its broker-based publish-and-subscribe model decouples message producers from consumers. It supports delivery options, retained values and disconnection notifications. HTTP remains useful for configuration, request-response APIs and firmware downloads, and it can also carry telemetry effectively. MQTT is not inherently more secure or always more efficient: connection patterns, payload size and implementation matter. Many systems use both protocols, selecting each according to the task rather than treating them as mutually exclusive.
What is the difference between an IoT sensor and an actuator?
A sensor measures a physical condition, while an actuator changes one. A humidity sensor reports moisture in the air; a valve actuator changes water flow. Both can connect to the same controller, allowing software to translate measurements into actions. However, actuation introduces additional risks because incorrect commands can affect equipment or people. Systems need appropriate limits, authorisation, feedback and safe failure behaviour. A successful command transmission alone does not prove that the physical action happened correctly.
What are good IoT projects for beginners?
Good starter projects include room-temperature monitoring, a door-open logger and soil-moisture measurement without automatic watering. These let learners practise sensor interfaces, message formats, MQTT, storage and dashboards before adding physical control risks. Keep the initial scope small, but include fault handling: disconnect a sensor, interrupt Wi-Fi and inspect delayed messages. A useful project should explain what its readings mean and when they cannot be trusted. Avoid mains-voltage switching or safety-critical applications without appropriate expertise and safeguards.
How do you keep IoT devices secure?
Use unique device identities, protected credentials, encrypted connections and narrowly scoped permissions. Keep firmware supported and updated through an authenticated process, and remove unnecessary services. Separate device networks where appropriate, monitor unusual behaviour and plan for credential rotation or compromise. Security also depends on purchasing decisions: check the manufacturer's update policy and support arrangements before deployment. When retiring equipment, revoke its access and erase sensitive data. No single measure, including encryption, substitutes for managing the complete device lifecycle.

Study it properly: Internet of Things: Sensors, Edge and Cloud IoT

Connect the physical world with sensors, microcontrollers, MQTT and cloud IoT services.

More on this subject

All articles · Sitemap