Industry 4.0 in practice: what a plant has to prove and how to measure it without stopping production
For most factories, Industry 4.0 is not a new production line. It is knowing the condition of the machines and the energy each line uses, with data instead of rounds and spreadsheets. That data has become something the rules ask for: maintenance checks that must be documented, energy audits built on measured data and, from 2027, connected machinery and cybersecurity rules. This guide explains what each rule asks for, which measurement answers it, how to connect what the plant already has and how to start without touching the PLCs.
Why it is no longer optional
In Spain, Royal Decree 1215/1997 requires work equipment to be maintained and, where it can deteriorate into a hazard, checked periodically, with the results documented and kept for the whole life of the machine. A maintenance plan that lives in someone's head or in paper rounds is hard to show to a labour inspector after an accident.
Energy is the second front. Large companies must audit at least 85% of their energy use every four years, using measured and verifiable data and load profiles; not doing it is a very serious infraction of 10,001 to 60,000 euros. Directive (EU) 2023/1791 moves the test from company size to consumption: above 10 TJ a year (about 2.8 GWh) an audit, above 85 TJ a certified energy management system. Spain has not transposed that part yet, but many mid-sized plants that are not large companies will fall inside it.
And connectivity now has its own rules. The Machinery Regulation, which applies from 14 January 2027, says that connecting a device to a machine must not create a hazard and that safety-critical software must be protected against corruption. NIS2 brings risk management, asset inventories and 24-hour incident warnings to medium and large manufacturers of machinery, vehicles, electronics, electrical equipment, chemicals and industrial food; Spain's law was still in parliament in November 2026.
| Rule | What it asks of the plant | Data that answers it |
|---|---|---|
| RD 1215/1997 | Documented periodic checks of equipment that can deteriorate | Vibration, temperature and current per machine |
| RD 56/2016 and Directive 2023/1791 | Audit on measured data, or a certified energy management system | Energy per line and large consumer, with load profiles |
| RD 486/1997 | Temperature 14-25 °C for light work, humidity 30-70%, fresh air per worker | Temperature, humidity and CO2 per work area |
| Regulation (EU) 2023/1230 | Connected devices must not create hazards | Read-only integration that does not write to the PLC |
| NIS2 | Asset inventory, supply-chain security, incident warning | Inventory of connected assets, outbound-only gateway |
What unplanned downtime and waste really cost
The Siemens and Senseye study on the true cost of downtime (2024) estimates that the world's 500 largest companies lose about 1.4 trillion dollars a year to unplanned downtime, 11% of their revenue, and that an hour of stoppage costs much more than in 2019 in automotive and heavy industry. Most of those stops give warning: vibration or temperature rising for days or weeks before the failure.
Compressed air is the classic invisible loss. According to the Compressed Air Challenge, a poorly maintained plant typically leaks around 20% of its compressor output, against less than 10% in a well maintained one. Nobody hears it during the shift, but a pressure sensor and the compressor's current at night, with production stopped, show it in a week.
What to measure, machine by machine
- Motors, pumps, fans and gearboxes: A clamp-on vibration and temperature sensor such as the TWTG NEON. ISO 20816-3 gives guidance for judging vibration both by its level and by how much it changes, so each machine gets its own baseline.
- Energy per line and per large consumer: Current clamps such as the Milesight CT105 on each line, compressor and chiller give the load profiles the audit asks for, without opening switchboards for a wired meter.
- Compressed air: A pipe pressure sensor such as the Milesight EM500-PP plus the compressor's current, read outside shifts, measure the leak baseline before and after each repair campaign.
- Work areas: Temperature, humidity and CO2 with a sensor such as the Milesight AM307, with alarms when a hall leaves the Royal Decree 486/1997 ranges.
- What the PLCs already know: Run hours, stops, counters and alarms are read from the PLCs through the edge gateway over Modbus or OPC UA and sent by MQTT. No new sensor is needed for what the machine already measures.
Connecting it without touching safety or opening the network
Wireless sensors are clamped or glued onto the machine and do not go into its control circuit. The gateway only reads from the PLC network and only opens outbound connections, so the plant network stays closed to the internet. That is how monitoring is added without changing how the machine is protected, which is what the Machinery Regulation cares about; whether any change counts as substantial is still decided by the plant's own risk assessment.
For NIS2 and the Cyber Resilience Act, every supplier of connected equipment is part of your supply chain, us included. The data can stay in AWS Frankfurt or on your own servers, and alerts can open work orders in the maintenance software through the API.
How to plan a pilot
- 1. Pick the machines that hurt most when they stop: The bottleneck of the line, the ones without a spare and the ones that have already failed this year.
- 2. Read what already exists: PLC data and existing meters first; sensors only where there is no data.
- 3. Learn each machine's normal for a few weeks: Then set alarms on the change against that baseline, not on a generic number.
- 4. Turn alerts into work orders and records: Each alert that ends in a check leaves the documented record Royal Decree 1215/1997 asks for.
What to ask a provider
- Does it read my PLCs without writing to them?: Read-only integration keeps the machine's safety as it was.
- Where is the data and can I get it out?: The audit and the equipment checks need years of history; it has to be yours and reachable through an API.
- How does it handle vulnerabilities?: The Cyber Resilience Act makes manufacturers report actively exploited vulnerabilities from September 2026. Ask every supplier how they do it.
- Does it promise compliance?: No platform makes a machine or a plant compliant. It provides the measured record; competent staff, auditors and the authority decide.
Cloud Studio IoT runs in AWS (Frankfurt for Europe) or on your own servers, and under your brand if you are an integrator. Tell us about your plant.
Sources
- Royal Decree 1215/1997 on work equipment (BOE)
- Royal Decree 56/2016 on energy audits (BOE)
- Directive (EU) 2023/1791 on energy efficiency
- Regulation (EU) 2023/1230 on machinery
- Directive (EU) 2022/2555 (NIS2)
- Regulation (EU) 2024/2847 (Cyber Resilience Act)
- Siemens and Senseye, The True Cost of Downtime 2024
- Compressed Air Challenge, fact sheet 7: leaks
















