Skip to content
IoT Crest

IoT data logging explained

By Hamza Rivera, published , 4 min read

Short answer: IoT data logging is the process of collecting sensor readings over time, stamping each one with a time, and storing it so it can be reviewed later. A connected logger also sends the readings on, and keeps each one in its own memory until the receiver acknowledges it.

What IoT data logging is, how a reading travels from sensor to stored record, how a logger keeps data through an outage, and what to decide first.

This article covers what a data logger is, what it records, how an IoT logger stores readings and sends them on, what happens during a network outage, and how a logger differs from a data acquisition system It does not cover a ranking of logger products, the price of a deployment, the choice of database or dashboard, or the security of the data once it reaches a server

A data logger records readings over time. An IoT data logger does the same, and can also send the readings on over a wireless link. This guide covers what the logger records, how the readings travel, what happens when the connection drops, and what to decide before you set one up. For the radio and network side, read IoT sensor network explained.

What a data logger is

Wikipedia defines a data logger as an electronic device that records data over time or about location. It usually has a microprocessor, internal memory and one or more sensors. It also typically has a way to record the date and time for each reading.

Keyence describes data logging as the process of collecting and storing data over time. Its purpose is to automate collection and support the analysis of historical data. Trends and unusual readings show up once the history is kept.

Dewesoft describes a data logger as a small, relatively inexpensive device that monitors and records data over time. A logger is the better choice when the application does not need high-speed recording. A data acquisition system is for that case. Keyence says a DAQ system often needs to be connected to a computer.

The path of one reading

  1. Sensing. The sensor measures something, such as temperature, and the logger reads the value at its set interval.
  2. Time stamp. The logger attaches the time of the reading. Wikipedia notes that this is typical for a data logger.
  3. Storage. The reading goes into the logger’s internal memory. Dewesoft says data loggers normally keep recorded data in internal non-volatile memory.
  4. Sending. A connected logger passes the reading on by USB or wireless link. Keyence says some loggers store the data, while others send it over USB or a wireless system.

Wikipedia adds that data loggers typically have slower sample rates. It says a maximum rate of 1 Hz may be considered very fast for a data logger.

What happens when the network drops

A connected logger should keep readings until the receiver has them. SmartSense describes this as store-and-forward: its sensor keeps each reading until the gateway acknowledges it. Its sensor puts each measurement in a local store, and keeps it there while the gateway is down. When the gateway returns, the sensor sends the data again.

The rule that protects the data is the acknowledgement. In the SmartSense system, the sensor removes a reading from its buffer only after a successful acknowledgement. If no acknowledgement arrives, the packet is sent again. After three attempts, the packet is removed from the queue, so a repeated failure can lose data.

The buffer has a limit. SmartSense says its buffer holds about one month of 15-minute interval data. If an outage lasts longer than that, data is lost. That figure is for one vendor at one interval, so check the buffer against your own interval.

What to decide before you set one up

  • Sample interval. How often does a reading need to be taken? A slower interval means fewer readings to store and send, and less detail.
  • Buffer size against outage length. How long could the network be down? Check the logger’s stated buffer capacity against that time.
  • Acknowledgement and retry. Does the logger confirm each reading, and what happens after repeated failures?
  • Power. Dewesoft says many loggers draw so little power that they can run for hours without external power. The sample rate and the send schedule still set how fast the battery drains, so check both against the battery you plan to use.
  • Which copy is the record. Decide whether the logger, the gateway or the server holds the copy people will review, and how long each one keeps it.

Common questions

What is IoT data logging?

Collecting and storing sensor readings over time. Keyence defines data logging as the process of collecting and storing data over time.

What does a data logger record?

Readings from one or more sensors, with a date and time stamp on each one. Wikipedia says a data logger typically has a microprocessor, internal memory and sensors, and a mechanism to record the date and time.

What is the difference between a data logger and a data acquisition system?

Dewesoft says a data logger is chosen instead of a data acquisition system when the application does not need high-speed recording. Keyence says a DAQ system often needs a computer, and that standalone loggers are self-contained units.

What happens to logged data when the network drops?

A store-and-forward logger keeps the readings in its own memory. SmartSense describes a sensor that deletes a reading only after the gateway acknowledges it, and retries when no acknowledgement comes. In SmartSense’s example the buffer holds about one month of 15-minute readings, and data is lost once that limit is reached.

Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.

More from Sensors and hardware

All sensors and hardware articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.