IoT Based Data Acquisition: Guide to Carrying Analog Data to the Cloud

Amazeng Technical Team
5 min read
IoTCloud DataData AcquisitionGatewayIndustrial DataMQTT

An analog sensor (4-20 mA, 0-10 V, load cell) cannot connect to the internet directly. For its data to reach the cloud, it must first be digitised at high resolution, then carried over a field protocol such as Modbus to an IoT gateway, and from there over MQTT/TLS to a cloud platform. In a sound architecture every layer has a clear job: the measurement is made correctly in the field, the data is summarised at the edge, and the cloud stores and analyses it.

Which layers does analog data pass through on its way to the cloud?

LayerJobTypical technology
1. SensorConverts a physical quantity into an electrical signalLoad cell (mV/V), pressure (4-20 mA), temperature
2. DigitisingConverts the analog signal into a precise digital valueDigital transmitter, data acquisition module (ADC)
3. Field communicationCarries data on the local networkModbus RTU (RS485), Modbus TCP (Ethernet)
4. GatewayProtocol conversion, buffering, securityIndustrial Linux device, IoT gateway
5. Cloud transportSends data to the cloud encryptedMQTT over TLS, HTTPS
6. CloudStorage, visualisation, analysisTime-series database, dashboards, ML

Layer 1: Digitising

Converting the analog signal (for example, tank level) into digital data with a high-precision Digital Transmitter.

  • Why it matters: Poorly digitised data reaches the cloud as "noise" and corrupts every analysis. No algorithm in the cloud can recover resolution lost in the field. To check 4-20 mA scaling, use our 4-20 mA signal calculator.

Layer 2: Communication and gateway

Transferring the digitised data from a local network (RS485, Ethernet) to the IoT gateway.

  • Protocols: Modbus RTU/TCP in the field and MQTT towards the cloud are the most common players in this layer. Thanks to the Modbus protocol, our ZMA Data Acquisition devices can communicate with the vast majority of IoT gateways and PLC systems on the market.
  • The gateway's real job: Polling devices at set intervals, scaling values, packaging them in a format such as JSON, and buffering data locally when the connection drops (store-and-forward), sending it once the link returns.

Layer 3: Cloud and visualisation

Transmitting data arriving via the gateway (in JSON or binary format) to cloud servers. At this point the data is ready to be stored in time-series databases, monitored on dashboards and analysed.

How fast can a Modbus RTU line be polled?

In gateway design, the first limit is often not the cloud but the RS485 line. At 19,200 baud with 11 bits per character (start + 8 data + parity + stop):

  • Character time: 11 / 19,200 ≈ 0.57 ms
  • Request to read 8 registers: 8 bytes; response: 5 + 16 = 21 bytes → 29 characters in total
  • Adding the 3.5-character silent interval between frames (×2) gives ≈ 36 characters → ≈ 20.6 ms

Including the device's response preparation time, polling 10 devices in turn on a single line takes roughly 250-300 ms per full cycle. If faster updates are needed, raise the baud rate, split the line, or use Modbus TCP.

How much data should go to the cloud?

Let's look at the effect of summarising at the edge with an example: 4 channels, 1 kHz sampling, 3 bytes per sample (24-bit).

Sending strategyCalculationDaily volume
Raw stream4 × 1,000 × 3 bytes × 86,400 s≈ 1.04 GB
One summary per second (avg/min/max per channel, ~200-byte JSON)200 bytes × 86,400≈ 17.3 MB
Send only on change / alarmDepends on event countOften below a few MB

Moving from a raw stream to per-second summaries cuts volume by a factor of about 60. Since cloud messaging and storage are usually billed by volume, this difference goes straight to the invoice.

An example MQTT message for a per-second summary:

{
  "device": "zma-line1",
  "ts": 1767225600000,
  "ch1": { "avg": 1250.4, "min": 1249.8, "max": 1251.1 },
  "ch2": { "avg": 3.82, "min": 3.80, "max": 3.85 }
}

A hierarchical topic structure such as factory/line1/zma-line1/data makes authorisation and rule definitions in the cloud much easier.

Where do Amazeng devices fit in the IoT architecture?

Amazeng products sit at the edge of the IoT pyramid. We do not just pass data on; we prepare it for the cloud:

  • Edge processing: While reading 1,000 samples per second, the ZMA series allows only meaningful average or peak values to be passed to the gateway and the cloud, reducing bandwidth cost.
  • Secure communication: Our devices deliver clean data over Modbus within the local network; the gateway encrypts it with TLS before sending it to the outside world. Not exposing field devices directly to the internet is a basic security principle.

Example scenario: multi-site plant monitoring

Imagine monitoring machine data from plants in different cities from a single centre. At each site, ZMA Data Acquisition devices read the sensors and pass the data over Modbus to a gateway in the building. The gateway carries the data over MQTT/TLS to a cloud platform such as AWS or Azure. When the connection drops, the gateway buffers data locally and sends it in order once the link returns. The result: you can monitor every site from a single dashboard.

Summary: checklist for moving analog data to the cloud

  • Verify the sensor signal type and scaling in the field.
  • Calculate the number of devices and the polling time on each RS485 line.
  • Decide up front whether raw data or summaries go to the cloud.
  • Make sure the gateway has a store-and-forward buffer.
  • Use TLS and a per-device certificate for the MQTT connection.

For a step-by-step AWS implementation of this architecture, see Industrial Data Collection with AWS IoT Core. To bring your analog sensors into the IoT world, explore our Cloud & IoT Data Collection solutions and products, or get project support from our technical team.