IIoT Start Here
Industrial IoT (IIoT) is the practice of getting data out of plant-floor equipment (PLCs, drives, meters, sensors) and into systems where people and software can use it: dashboards, alarms, historians and analytics. This page gives you the mental model, a protocol comparison and a learning path that ends in a hands-on lab you can run on a laptop.
The end-to-end data pipeline
Section titled “The end-to-end data pipeline”Almost every IIoT project, from a single boiler to a multi-site fleet, is a variation of this pipeline:
FIELD LEVEL EDGE / GATEWAY TRANSPORT STORAGE USE+--------------+ +------------------+ +-------------+ +----------------+ +----------------+| Sensors, | | Protocol gateway | | MQTT | | Time-series DB | | Dashboards || meters, VFDs |RS485 | (industrial PC, | | broker | | (TimescaleDB, | | (Grafana) || PLC / RTU +----->+ Raspberry Pi, +--->+ (Mosquitto,|--->+ InfluxDB) +--->+ Alerts (email, || Modbus RTU/ |TCP | edge box) | TLS| EMQX) | | + SQL / retent.| | Telegram) || TCP, PROFINET| | poll, decode, | | or direct | | | | Reports / ML |+--------------+ | buffer, publish | | DB insert | +----------------+ +----------------+ +------------------+ +-------------+ OT network (segmented, no internet) <-- firewall / IDMZ --> IT / cloud network| Stage | Job | Typical tools |
|---|---|---|
| Field device | Measure or control the process | PLC, energy meter, flow transmitter, VFD |
| Gateway | Poll registers, decode data types, timestamp, buffer on link loss | Python + pymodbus, Node-RED, vendor gateway |
| Broker | Decouple producers from consumers, publish/subscribe | Mosquitto, EMQX, HiveMQ |
| Time-series DB | Store high-volume timestamped values, downsample, retain | TimescaleDB, InfluxDB |
| Dashboard / alerts | Visualise, threshold, notify | Grafana, Node-RED dashboard |
Two practical points that trip up beginners:
- Decoding is half the work. A 32-bit float in Modbus is spread over two 16-bit registers and vendors disagree on word and byte order. Use the Modbus Float Converter to check your order before blaming the network.
- Gateways poll, brokers do not. Modbus is request/response, so something must ask on a schedule. MQTT is publish/subscribe, so consumers receive data without polling. Test your topic design with the MQTT Topic Tester.
Protocol comparison
Section titled “Protocol comparison”| Modbus RTU | Modbus TCP | OPC UA | MQTT Sparkplug B | PROFINET | |
|---|---|---|---|---|---|
| Transport | RS-485 / RS-232 serial | TCP/IP, port 502 | TCP/IP, typically port 4840 (opc.tcp) | MQTT over TCP, 1883 / 8883 (TLS) | Industrial Ethernet (real-time Layer 2 plus UDP/IP for setup) |
| Topology | Master/slave multidrop bus | Client/server | Client/server and pub/sub | Broker-centred pub/sub | Controller / device / supervisor |
| Data model | Flat registers and coils | Flat registers and coils | Rich object model with types, metadata, methods | Defined topic namespace and Protobuf payloads with metrics | GSD files, cyclic IO data |
| Built-in security | None | None (use VPN or segmentation) | Yes: certificates, signing, encryption, user auth | Relies on TLS and broker ACLs | Limited by default; use segmentation and security classes |
| Typical use | Meters, drives, legacy sensors | Modern PLCs, gateways, simulators | Plant-to-MES/SCADA integration, vendor-neutral | Edge-to-cloud / unified namespace, report-by-exception | Real-time PLC to IO and drives (Siemens ecosystem and others) |
| Learning difficulty | Easy | Easy | Medium to hard | Medium | Hard (hardware and tooling dependent) |
How to choose in practice:
- Reading an existing meter or drive: almost always Modbus RTU or TCP.
- Connecting a plant to many consumers: MQTT (optionally with Sparkplug B for standard topics, birth/death certificates and state management) or OPC UA.
- Needing secure, self-describing data between systems: OPC UA.
- Real-time control I/O on the machine: PROFINET (or EtherNet/IP, EtherCAT depending on vendor). You will rarely implement this yourself; you configure it in the engineering tool.
Keep the Industrial Ports and Protocols cheat sheet open while you work; it lists default ports and what to allow or block in firewalls.
Recommended learning path
Section titled “Recommended learning path”- Networking basics. IP addressing, subnets, VLANs, TCP vs UDP. Plan a plant network with the Subnet and VLAN Planner and practise commands from the Linux networking cheat sheet.
- Modbus fundamentals. Function codes, coils vs holding registers, 0-based vs 1-based addressing, scaling, float32 byte order. Use the Modbus Float Converter.
- Run the virtual lab. Build a complete pipeline (simulated PLC, poller, TimescaleDB, Grafana) in Docker: Virtual Modbus Docker Lab.
- MQTT. Topics, QoS, retained messages, last will. Practise with the MQTT Topic Tester and the Wokwi virtual IoT lab.
- OPC UA. Nodes, namespaces, security policies. Try an open-source OPC UA server and client on your laptop.
- Secure it. Segmentation, remote access, monitoring: Cybersecurity Start Here and Wireshark for OT.
- Deploy repeatably. Turn your setup into scripts with the Script Stack Generator and size battery or edge nodes with the IoT Battery Calculator.
Tools and next steps
Section titled “Tools and next steps”- All tools and utilities index
- Modbus Float Converter: decode and encode float32, int32 and word swaps
- Subnet and VLAN Planner: design OT/IT segmentation
- Virtual Modbus Docker Lab: the full pipeline on your laptop
- IoT Start Here if you also need device-level hardware, and Hardware Wiring Safety before touching any real panel