A Flexible Raspberry Pi-Based Data Logger Platform for Modbus Sensors with Ansible Deployment

📅 2026-05-11
📈 Citations: 0
Influential: 0
📄 PDF

career value

213K/year
🤖 AI Summary
This study addresses the lack of low-cost, easily deployable, and flexible solutions compatible with diverse Modbus sensors in current environmental monitoring systems. The authors propose an open-source data acquisition platform based on Raspberry Pi, featuring a custom-developed AtmosPyre library for Modbus communication. By integrating Ansible automation and YAML-based configuration, the system enables one-click deployment and modular driver extensions, significantly lowering the barrier to integrating new sensors. Utilizing an RS-485 interface, the platform stores data in CSV/JSON formats and achieves a hardware cost of only €54–63. It has been successfully deployed in a karst region for long-term, continuous monitoring of CO₂ and ²²²Rn since spring 2025, demonstrating stable operation. Both hardware and software are fully open-source, offering high cost-effectiveness and reproducibility.
📝 Abstract
This article presents LibrePiLogger, an open-source data logging platform based on the Raspberry Pi for environmental monitoring using Modbus sensors over RS-485. The system combines the AtmosPyre Python library for sensor communication with Ansible-based deployment automation, allowing researchers to deploy sensor networks by editing a single YAML inventory file. Two hardware configurations are described: a minimal setup using a Raspberry Pi Zero with an RS-485 HAT, and a maximal setup using a Raspberry Pi 4 with a USB-to-RS-485 converter. Currently implemented sensors include the Vaisala GMP252 for CO$_2$ and the RadonTech AlphaTRACER for $^{222}$Rn, with new sensors requiring approximately 100 lines of Python following a provided driver template. Data is logged to timestamped CSV files with JSON metadata. The system has been deployed for continuous CO$_2$ and $^{222}$Rn monitoring in a karst environment since spring 2025 and remains in active operation, demonstrating reliable long-term performance. All hardware designs, software, and deployment scripts are released under the GNU General Public License v3.0. Total hardware costs range from 54 to 63EUR (excluding housing), depending on the configuration.
Problem

Research questions and friction points this paper is trying to address.

data logger
Modbus sensors
environmental monitoring
Raspberry Pi
long-term deployment
Innovation

Methods, ideas, or system contributions that make the work stand out.

Raspberry Pi
Modbus
Ansible
data logger
open-source
L
Leon Keim
Institute for Modeling Hydraulic and Environmental Systems, University of Stuttgart, 70569 Stuttgart, Germany
S
Steffen Hägele
Institute for Modeling Hydraulic and Environmental Systems, University of Stuttgart, 70569 Stuttgart, Germany
V
Vivien Langhans
Institute for Modeling Hydraulic and Environmental Systems, University of Stuttgart, 70569 Stuttgart, Germany
Holger Class
Holger Class
Professor, Universität Stuttgart
poröse MedienMehrphasenströmungennumerische SimulationDumux