Open-Source and Cost-Effective Digital Twin

A case study with two weeks to succeed

JournalIndustry 4.0 Science
Issue Volume 41, Edition 3, Pages 62-68
Open Accesshttps://doi.org/10.30844/I4SE.25.3.62
Bibliography Share Cite Download

Abstract

Digital Twin (DT) adoption remains a challenge due to high costs, complexity and lack of skills. This study proposes a cost-effective, TRL 5-validated DT model that can be built using open-source and office suite tools within just two weeks. Integrating real-time sensor data, predictive analytics, anomaly detection and notification, the model improves efficiency and sustainability in agriculture. Even with cloud service constraints, the system delivers a 7.76% average relative error and rapid, automated notifications. The findings show how open-source in combination with common commercial tools technologies can make advanced digital tools accessible to all, creating scalable, human-centered, and affordable solutions in line with Industry 5.0 principles.

Keywords

Article

Industry 4.0’s revolution in manufacturing has driven progress in technologies that blend physical and digital, including AI, IoT, and cloud computing [1]. Digital Twin (DT) technology [2] is central to this progress; it virtually replicates physical assets and processes, enabling real-time monitoring, simulation, and optimization. Despite its advantages, DT technology faces significant adoption challenges across various sectors. High implementation costs and technical and organizational issues often keep industries from reaping the full benefits of these solutions [3].

This study aims to bridge the gap between advanced technology and practical applications. It achieves this by creating an affordable, easy to implement, validated DT at Technology Readiness Level 5 (TRL 5) with open-source platforms and widely available commercial tools.

DT technology enhances real-time monitoring, predictive maintenance, and automation, benefiting Industry 4.0. Despite its widespread use in manufacturing, the automotive industry, and healthcare, the technology sees limited use in agriculture [4].

In Germany, key adoption barriers include strict data protection laws (77%), a shortage of skilled workers (64%), and financial constraints [5]. In agriculture, challenges extend to high costs, unclear return of investment, and limited technical support [6].

Despite these challenges, DTs can transform agricultural digitization by providing real-time virtual representations of assets and processes, supporting sustainable farming practices. Agriculture is a significant source of greenhouse gas emissions and energy consumption [7], but DTs enable tracking of carbon emissions, biodiversity, and soil health, promoting the adoption of more sustainable practices [8].

This study explores the design of an accessible and affordable DT in agriculture using Arduino-based IoT sensors and Microsoft tools such as Power BI. It aims to develop a functional digital twin, validated with TRL 5, within a short time frame of two weeks using open source and office suite tools. The following research questions guided this study:

  • RQ1: Is it possible to build a validated TRL 5 digital twin on the short term using open-source and office suite tools?
  • RQ2: How do affordable DTs facilitate real-time agricultural monitoring and predictive analysis?
  • RQ3: How does this model contribute to Industry 5.0’s sustainability and human-centered goals?

A case study using Design Science Research (DSR) assesses the feasibility and impact of Technology Readiness Level 5 DT in agriculture, showing its potential to democratize advanced digital technologies and promote sustainable innovation.

Background: why digital twin?

A Digital Twin (DT) is a dynamic digital replica of a physical object, which enables real-time two-way data exchange for monitoring, control, and optimization. It integrates actual space, virtual space, and bidirectional data flow, allowing the digital system to simulate the physical system’s behavior under varying conditions [9]. Developed for aerospace, DTs have become integral to Industry 4.0, incorporating simulations, real-time analytics, and automation [10]. DTs offer the ability to prototype, virtual testing, and evaluation of new features or operational strategies without physical alterations [9].

The concept has evolved into the Digital Triplet (D3) [11], which includes human expertise and knowledge in decision-making in the DT framework, aligning with Industry 5.0’s focus on human-machine collaboration and sustainability [12]. Industry 5.0 prioritizes resilient, human-centric, and sustainable manufacturing.

DTs can significantly enhance energy efficiency and environmental responsibility [13]. Agriculture’s rising food needs, indicated by an expected global population of 9.8 billion by 2050 [14], demand innovative solutions. Smart farming, using digital twins, leads to sustainable food production and improved food security. But success hinges on dependable technology and smooth integration within current systems.

DT in smart agriculture enables precise monitoring of environmental variables, improving resource efficiency and crop yields. Yet most applications remain in prototype stages and many concepts remain theoretical [15]. Easy-to-use, reliable, and simple implementations are key to ensure adoption. The shift from Industry 4.0 to 5.0 emphasizes human-centered technologies; using familiar workplace tools can encourage adoption. Among those tools is Microsoft 365, with more than two million companies using it worldwide, and 62% of organizations relying heavily on Microsoft software [16][17].

While commercial tools offer ease of use and scalability, open-source technologies present an affordable, flexible alternative for DT development. Message Queuing Telemetry Transport (MQTT), a lightweight messaging protocol, efficiently transmits sensor data, making it ideal for environmental monitoring [18]. Arduino, an open-source hardware platform, simplifies IoT prototyping for smart agriculture with its user-friendly design.

Open-source tools offer customization and transparency, but they can be technically complex and have fragmented support. Conversely, commercial platforms such as Microsoft Azure IoT may lead to vendor lock-in because of proprietary formats, APIs, and extended licensing contracts, which raise switching costs and limit operational adaptability [19]. Self-hosted platforms offer more control over data and system behavior, avoiding subscription costs but requiring technical expertise and strong infrastructure management [20]. The decision between cloud and self-hosted platforms depends on an organization’s needs, digital maturity, and the trade-off between convenience, cost, and control.

Building a digital twin in two weeks: methodology and framework

This study employs a Design Science Research (DSR) methodology to develop and validate a scalable, low-cost DT model. DSR enhances knowledge through innovative artifacts and iterative cycles: problem identification, objective of a solution, design and development, and demonstration [21]. Design knowledge (DK) represents the relationship between problem and solution through artifacts, principles, and theories.

The Technology Readiness Levels (TRL) framework evaluates technology maturity from basic research (TRL 1) to full deployment (TRL 9) [22]. This study’s DT development falls under TRL 5, meaning validation in a real environment, integrating IoT sensors for real-time monitoring and data visualization, with a future scope in agriculture.

Case study

The case study reflects a real dilemma that companies face when implementing new technologies deciding between user-friendly commercial platforms and adaptable open-source tools. This study uses both open-source and commercial tools for flexible and user-friendly results. The study uses a testbed that simulates real-world precision farming conditions, featuring variable soil moisture, controlled temperatures, and energy monitoring. The objective was to assess the feasibility of an open-source DT for optimizing agricultural processes while ensuring sustainability and energy efficiency by integrating a system to assess the efficiency of irrigation and electrical consumption.

The study utilizes five key environmental and operational sensors:

  1. a temperature sensor for monitoring and assessing the climate’s effect on crops;
  2. a soil moisture sensor for measuring soil hydration to enable precision watering;
  3. a light intensity sensor for measuring sunlight exposure to analyze crop growth;
  4. an atmospheric pressure sensor for observing weather patterns and microclimate conditions;
  5. an electric current sensor for monitoring power consumption to improve energy efficiency.

The DT system architecture included four main layers: data acquisition, data transmission, data processing, and data visualization/automation. Figure 1 depicts the DT model’s architecture, data transmission workflow, and structure.

Architecture framework of the digital twin
Figure 1: Architecture framework of the digital twin.

Sensors connect to Arduino MKR WiFi 1010 microcontrollers, transmitting data via MQTT in JSON format to Azure IoT Hub. Azure Stream Analytics processes the data, which is visualized through Power BI dashboards. Power Automate facilitates alerts and notifications in Microsoft Teams, ensuring anomaly detection and automated workflows. Moreover, the DT has to satisfy four key criteria: real-time visualization, forecasting, what-if scenario simulation, and notifications and/or bidirectional communication.

Implementation and findings

The study aimed to develop a TRL 5 DT within two weeks using open-source and commercial tools, prioritizing sustainability, ease of use, and human-centric design.

Experimental setup

The experiment was set up in a simulated agricultural environment within a laboratory. Two participants with different backgrounds, a computer engineer and a mechanical engineer, were considered for the development. The experiment was based on two phases.

Phase one focused primarily on hardware setup and data collection. The initial week involved setting up Arduino MKR WiFi 1010 microcontrollers and environmental sensors. To create a forecast, data was gathered every five minutes for seven days to build a historical dataset. Power BI received CSV file data to build predictive models and analyze trends. Thresholds were established for temperature, humidity, soil moisture, and energy use. Environmental conditions for the next seven days were forecast using Power BI’s Exponential Smoothing ETS time-series model.

During phase two, real-time sensor data was sent from an Arduino to Azure IoT Hub using MQTT. Incoming data was processed by Azure Stream Analytics, then sent to Power BI for visualization. What-if simulations were used to test the system’s predictive analysis of sudden environmental changes. When sensor readings surpassed predefined thresholds, Power Automate workflows sent a notification to Microsoft Teams. If an anomaly was detected, Power Automate sent a command to Azure IoT Hub, triggering a buzzer or LED to signal bidirectional communication. From the eighth day onwards, real time values were obtained within the model, which allowed for a comparison of the predicted values with the actual values of the following days.

Real-time analytics and automation in Power BI

The DT dashboard displayed real-time data, forecasting, what-if simulations, and alerts. Predictive analytics improved decision-making, with a 95% confidence interval ensuring reliable predictions. Thresholds for anomalies were established:

  • Temperature: Below 5°C or above 28°C.
  • Humidity: Below 10% or above 80%.
  • Energy Consumption: Above 3.73 kWh.
  • Soil Moisture: Below 190 (requires water) or above 260 (excess water).

Automated alerts and bidirectional communication were enabled through Power Automate, sending notifications and triggering physical responses like activating buzzers or lights. The dashboard in Figure 2 displays the real-time moisture level model and forecast at the top. In the bottom-left corner, a what-if scenario simulator sits beside the notification box. Press the trigger at the bottom right to activate notifications in Microsoft Teams via Power Automate.

Digital twin dashboard with real-time visualizations, forecasting, what-if simulations, and notifications/bidirectional communication.
Figure 2: Digital twin dashboard with real-time visualizations, forecasting, what-if simulations, and notifications/bidirectional communication.

Power Automate allowed real-time alerts and bidirectional communication between digital and physical systems. Automated alerts in Microsoft Teams sent notifications of critical changes, such as temperature anomalies. The system’s temperature sensors activated a buzzer and warning light, signaling a need for cooling. Power Automate used HTTP requests to communicate with Azure IoT Hub, which then communicated with an Arduino.Power Automate allowed real-time alerts and bidirectional communication between digital and physical systems. Automated alerts in Microsoft Teams sent notifications of critical changes, such as temperature anomalies. The system’s temperature sensors activated a buzzer and warning light, signaling a need for cooling. Power Automate used HTTP requests to communicate with Azure IoT Hub, which then communicated with an Arduino.

Validating real-time monitoring and automation

Controlled tests validated system functionality. Temperature sensors detected heat source changes, triggering alerts. A soil moisture validation test was performed by adding water to the soil. The system precisely measured and showed the higher moisture levels. Power Automate sent notifications successfully, averaging a response time of two seconds. This trigger was also activated when the data changes were simulated in the dashboard.

Key outcomes

The experiment successfully demonstrated that a TRL 5 Digital Twin can be developed in two weeks using open-source technologies and commercial tools, providing real-time monitoring, predictive analytics, anomaly detection, and alerting functionalities. The human-centered design ensured usability for non-experts.

However, certain limitations came to light. A subscription is necessary to access a fully functional version of Azure IoT Hub and Stream Cloud Analytics. Power Automate workflows requiring features like HTTP connection also necessitate Microsoft 365 Pro or Premium. Although they have limitations, cloud-based IoT platforms are still very practical and useful, mainly due to their user-friendliness, simple integration, scalability, and widespread familiarity.

Future research could consider exploring hybrid DT architecture that combines the strengths of self-hosted and cloud-based IoT platforms. This would allow organizations to retain data ownership and flexibility through local infrastructure, while leveraging the scalability and AI capabilities of commercial cloud services when needed. Investigating methods for secure, modular integration between platforms like Eclipse Ditto, Node-RED, and Azure IoT could address interoperability challenges and reduce vendor lock-in.

Assessing the accuracy, insights, and challenges of the model

The forecasting model’s accuracy was assessed using relative error analysis:

Relative error forcasted realtime
(I)

The average relative error was 7.76%, indicating moderate precision. The model followed actual data trends but had deviations that affected irrigation efficiency. The forecast line closely follows the actual data, indicating a reasonably accurate model, but enhancing accuracy could improve water usage. Whether this accuracy level is acceptable depends on the application and industry standards. Figure 3 presents a six-day time series depicting real-time and forecasted soil moisture.

Realtime data vs. forecasted data.
Figure 3: Realtime data vs. forecasted data.

Response time tests for notifications confirmed a two-second average, demonstrating the system’s effectiveness in real-time alerting. Integrating various platforms, particularly the unfamiliar Azure tool, presented some challenges. Improvements are needed in AI-driven automation, edge computing, and security. While not yet at an industrial scale, DT provides a solid foundation for further deployment.

From concept to reality: the impact of a two-week digital twin

The research addressed its questions by proving that a validated TRL 5 Digital Twin could be constructed within a short period using open-source and office suite tools (RQ1). By combining real-time monitoring, predictive analytics, and automation, the DT demonstrated its ability to support affordable real-time agricultural monitoring and predictive analysis (RQ2). Moreover, the model supports Industry 5.0 objectives by fostering sustainability and improving human-centric decision-making in smart farming (RQ3).

Although the model had a 7.76% average relative error, its predictions were reliable, and anomaly detection was achieved within two seconds. Challenges remain, especially with cloud service restrictions and automation limitations caused by subscription prerequisites. However, this DT model offers a promising, affordable, accessible, and sustainable solution for smart agriculture.

Further studies should strive to enhance the TRL through extensive testing in real operating environments and varied agricultural scenarios. Demonstrating the Digital Twin’s performance at higher readiness levels (for example, TRL 6–7) is critical for validating its robustness, reliability, and scalability for field deployment. This research can propel large-scale agricultural use, thus speeding up DT adoption on the way to achieving a two-week success rate!


Bibliography

[1] Attaran, S., Attaran, M., Celik, B. G.: Digital Twins and Industrial Internet of Things: Uncovering operational intelligence in industry 4.0. In: Decision Analytics Journal 10 (2024), p. 100398.
[2] Attaran, M., Attaran, S., Celik, B. G.: The impact of digital twins on the evolution of intelligent manufacturing and Industry 4.0. In: Advances in Computational Intelligence 3 (2023) 3, p. 11.
[3] Pileggi, P., Bujari, A., Barrowclough, O., Haenisch, J., Woitsch, R.: Overcoming nine digital twin barriers for manufacturing SMEs. Change2Twin Project. 2021.
[4] Pylianidis, C., Osinga, S., Athanasiadis, I. N.: Introducing digital twins to agriculture. In: Computers and Electronics in Agriculture (2021) 184, p. 105942.
[5] Bitkom: What are the biggest obstacles in the development of digital products or services in your company? In: Statista (2023). URL: https://www.statista.com/statistics/1356352/obstacles-to-digital-development-of-companies-germany/m, accessed 04.03.2025.
[6] McKinsey & Company: Main global challenges for the adoption of agricultural technology in 2024, by region. In: Statista (2024). URL: https://www.statista.com/statistics/1549977/challenges-for-agricultural-technology-adoption-worldwide-by-region/, accessed 11.03.2025.
[7] Food and Agriculture Organization of the United Nations: World agriculture: towards 2030/2050. Interim report. Rome (2006).
[8] Fiala N.: The greenhouse hamburger. In: Sci Am (2009) 300, pp. 72–75.
[9] Grieves, M., Vickers, J.: Digital twin: Mitigating unpredictable, undesirable emergent behavior in complex systems. In: Transdisciplinary perspectives on complex systems: New findings and approaches (2017), pp. 85-113.
[10] Singh, M., Fuenmayor, E., Hinchy, E. P., Qiao, Y., Murray, N., & Devine, D.: Digital twin: Origin to future. In: Applied System Innovation 4 (2021) 2, p. 36.
[11] Umeda, Y., Hongo, Y., Goto, J., & Kondoh, S.: Digital triplet and its implementation on learning factory. In: IFAC-PapersOnLine 55 (2022) 2, pp. 1-6.
[12] Leng, J., Sha, W., Wang, B., Zheng, P., Zhuang, C., et al.: Industry 5.0: Prospect and retrospect. In: Journal of Manufacturing Systems (2022) 65, pp. 279-295.
[13] Cisneros Saldana, S., Kapoor, A., Acharya, S., & Markus, H.: Energy Efficiency Analysis in Industry 4.0 set up leveraging Industry 5.0 methods for Sustainable Manufacturing: Case Study. In: Procedia Computer Science (2025) 253, pp. 594-602.
[14] The State of Food and Agriculture 2017: Leveraging Food Systems for Inclusive Rural Transformation. 2017. URL: https://www.fao.org/3/i7658e/i7658e.pdf
[15] Monteiro, J., Barata, J., Veloso, M., Veloso, L., Nunes, J.: A scalable digital twin for vertical farming. In: Journal of Ambient Intelligence and Humanized Computing 14 (2023) 10, pp. 13981-13996.
[16] Enlyft: Number of companies using Office 365 worldwide as of February 2025, by leading country. URL:https://www.statista.com/statistics/983321/worldwide-office-365-user-numbers-by-country/, accessed 14.04.2025.
[17] Flexera Software: Types of services/software used by global organizations from leading tech vendors (Microsoft, Oracle, and IBM). URL: https://www.statista.com/statistics/1106115/types-software-used-by-companies/, accessed 14.04.2025.
[18] Al-Fuqaha, A., Guizani, M., Mohammadi, M., Aledhari, M., Ayyash, M.: Internet of things: A survey on enabling technologies, protocols, and applications. In: IEEE communications surveys & tutorials 17 (2015) 4, pp. 2347-2376.
[19] Opara-Martins, J., Sahandi, R., Tian, F.: Critical analysis of vendor lock-in and its impact on cloud computing migration: a business perspective. In: Journal of Cloud Computing 5 (2016) 1, p. 4.
[20] Minerva, R., Biru, A., Rotondi, D.: Towards a definition of the Internet of Things (IoT). In: IEEE Internet Initiative 1 (2015) 1, pp. 1-86.
[21] Peffers, K., Tuunanen, T., Rothenberger, M. A., Chatterjee, S.: A design science research methodology for information systems research. In: J Manag Inf Syst (2007) 24, pp. 45–77.
[22] Mankins, J. C.: Technology readiness levels. 1995.

Your downloads


Potentials: Energy Efficiency Profitability Resource Efficiency
Solutions: Production Control

You might also be interested in

Serious Games as a Training Tool

Serious Games as a Training Tool

Game mechanics design to promote resilience
Annika Lange ORCID Icon, Thomas Knothe ORCID Icon
Unforeseen events are increasingly challenging manufacturing companies. Being resilient during crises is becoming a key competence. Serious games (SG) can help make resilience-building processes more transparent. This article derives specific requirements for SG from different phases of resilience and shows how these can be implemented in game mechanics in order to effectively support the training of resilience.
Industry 4.0 Science | Volume 42 | 2026 | Edition 2 | Pages 98-104
Serious Gaming and the Energy Transition

Serious Gaming and the Energy Transition

Collaborative knowledge generation and interactive understanding of complex interrelationships
Janine Gondolf ORCID Icon, Gert Mehlmann, Jörn Hartung, Bernd Schweinshaut, Anne Bauer
Conveying the complexity and multifaceted nature of the energy transition to a broad audience is a challenge. This article demonstrates how interactive serious games on a multitouch table can help make connections tangible and comprehensible. The games and the table were used in various conversational contexts. These are presented here in three case vignettes based on participant observation of the different applications, as well as situated and shared reflection. The vignettes demonstrate how interaction can trigger epistemic processes, enable shifts in perspective, and foster collective thinking, all of which are necessary for shaping the future of society as a whole.
Industry 4.0 Science | Volume 42 | 2026 | Edition 2 | Pages 62-69
Industrial Transformation via a Machining Learning Factory

Industrial Transformation via a Machining Learning Factory

A learning module to foster competencies for a sustainability-driven transformation
Oskay Ozen ORCID Icon, Victoria Breidling ORCID Icon, Stefan Seyfried ORCID Icon, Matthias Weigold
Sustainability-enhancing transformation processes are necessary in all sectors if we are to remain within planetary boundaries. This also applies to the industrial sector as a significant emitter of greenhouse gases. Employees need new competencies to master this complex task of industrial transformation. These range from CO2 equivalents accounting to the development and evaluation of transformation scenarios, including technical measures. The learning module developed here addresses these competency requirements and uses the example of the ETA factory to show how a competency-oriented learning module for industrial transformation can be structured. It essentially comprises four phases: data collection and CO2 equivalents accounting, cause analysis, development of measures and evaluation of measures.
Industry 4.0 Science | Volume 42 | Edition 2 | Pages 38-47 | DOI 10.30844/I4SE.26.2.38
Experiencing Digital Twins in Production and Logistics

Experiencing Digital Twins in Production and Logistics

The fischertechnik® Learning Factory 4.0 as a development platform for possible expansion stages
Deike Gliem ORCID Icon, Sigrid Wenzel ORCID Icon, Jan Schickram, Tareq Albeesh
The fischertechnik® Learning Factory 4.0 has proven to be a suitable experimental environment for testing digital twins. Depending on the targeted maturity stage, the functions of a digital twin range from status monitoring and forecasting to the operational control of production and logistics systems. To systematically classify these functions, this article presents a maturity model that serves as a framework for the development of a digital twin. Building on this, selected use cases are implemented in a test and development environment based on a system architecture with multi-layered logic structure. These initial implementations serve to highlight application purposes, relevant methods, and typical challenges and potentials in the transfer to real factory environments.
Industry 4.0 Science | Volume 42 | Edition 2 | Pages 30-37 | DOI 10.30844/I4SE.26.2.30
From Brownfield to Industry 4.0

From Brownfield to Industry 4.0

Learning factories as training and testing environment for digital transformation
Jakob Weber, Sven Völker ORCID Icon
To succeed in their digital transformation, manufacturing companies need engineers with in-depth knowledge of key technologies and concepts, and a profound understanding of the transition from Industry 3.0 to Industry 4.0. This article describes the concept of a learning factory that is continuously subjected to a digital transformation, thereby creating an environment for the development of transformation competencies. The concept of digital transformation is based on digital worker assistance systems and multi-agent systems for production control. These enable the incremental integration of existing resources into the digitalized factory. The learning factory is not presented to students as a completed solution. Instead, it is continuously developed further as part of student projects. This way, it contributes directly to the qualification of personnel for the implementation of Industry 4.0.
Industry 4.0 Science | Volume 42 | 2026 | Edition 2 | Pages 88-96
AI Colleagues?

AI Colleagues?

Competence requirements and training for AI use in industry
Swetlana Franken ORCID Icon
Artificial intelligence is fundamentally changing tasks, roles, and skills in (industrial) companies. Increasingly, it acts as a colleague, preparing decisions, supporting processes, and interacting with people. This article highlights key competence requirements for AI use in industry, presents an integrated competence model, and outlines practical strategies for the transfer of skills. The aim is to prepare companies and employees for humane, competence-oriented AI implementation that combines technological efficiency with human creativity and judgment.
Industry 4.0 Science | Volume 42 | 2026 | Edition 2 | Pages 78-86