1 Introduction

Fuel is considered one of the most significant consumables in the beverage manufacturing industry, and it is critical to the economics of wine processing operations. To ensure that the fuel volumes in the industry's tank during the steam process are correct and valuable, a fuel monitoring system is necessary [1]. In addition, the mechanical heat exchangers (boilers) utilize the fuel heat or waste heat energies from the factory output to steam the working medium to a given temperature and pressure. Moreover, there are innumerable inadequacies in the industrial boiler system used by RABEC, such as a lower level of automation, greater fuel usage, discrepancies in fuel economy at the same production, serious pollution, inefficiencies, and accident proneness [2]. An IoT-based fuel monitoring system that uses IoT-enabled sensors could enable industry users to remotely monitor fuel usage and other fuel parameters, identify fuel drawbacks such as leakages or excessive idling, and maximize fuel efficiency [3]. Through the insertion of sensors, the real-time state parameters of the RABEC fueling system can be collected and transmitted to the remote management platform or webpage using an IoT web server platform such as ThingSpeak. Furthermore, the monitored fuel utilizations in the ignition process can be safe and efficient when fuel parameters such as fuel temperature and pressure can be analysed, determined, and investigated remotely where the operational situation of the monitored fuel boilers can be instantaneously and in real-time released on the internet through a webpage [4]. The operational cost of the fuel matters the most in RABEC. The increased cost of steam generation using fuel results in higher costs and this can be optimized by using real-time fuel monitoring and data analytics using IoT web access. The fuel tracking strategy is critical in RABEC's production plant, which operates to feed steam on a frequent basis for the manufacturing process [5]. Manual fuel monitoring systems without remote access and control, or with limited remote access, prevent real-time decision-making and quick emergency response. Figure 1 shows the manual measurements of fuel that come with inherent risks where the RABEC fuel tanks are tall structures and the risk of falling is very real.

Fig. 1
figure 1

RABEC fuel monitoring a using a stick and a manual meter b descent of the RABEC operator from the top of the fuel tank

Based on previous research, existing monitoring systems have many limitations, such as time consumption, human errors, inefficiency, inconvenience, and poor monitoring. Manual monitoring systems without remote access and control, prevent real-time decision-making and quick emergency responses. Additionally, fuel and oil tanks are prone to hazardous fumes that are not only bad for the lungs but also combustible. Therefore, reducing human intervention will reduce the risk of injury across the board [6]. Therefore, this study aimed to develop an IoT-based fuel monitoring system that should monitor the fuel temperature, fuel pressure, and humidity of fuel so that the operator and/or operation manager can more easily to monitor the fuel parameters via a web page and short message service to increase the fuel efficiency and effective fault check as soon as possible. The enhanced fuel monitoring system with high performance has been compelled for remote monitoring for fuel system applications to improve perfect fuel combustion to the RABEC [7]. The current RABEC fuel monitoring readings are inaccurate and inconsistent because of the high prevalence of misreading and high accidental risks during fuel level measurement, which can provoke death and abrupt industry plant breakdown. Furthermore, the existing fuel monitoring system is regarded as inefficient and imprecise difficulties that might be circumvented and cleared up securely with remote intelligent technology including GSM technology and the Internet of Things (IoT). The analysis of industrial fuel monitoring markets demonstrated that the integration and deployment of remote fuel monitoring methods are key topics in this paper. Various researchers have investigated these services and infrastructures using various fuel monitoring frameworks. All of these real-time fuel monitoring systems presented in the fuel monitoring study's review of the literature had advantages and disadvantages. The applicability of optimum monitoring theories showed that an IoT-based fuel monitoring system can dynamically improve fuel monitoring challenges. To prove an IoT-based fuel monitoring system performance in a wider range variation in fuel monitoring parameters is the far more important motivator in this research paper. The aim of this paper was to design and develop a real-time and remote fuel monitoring system based on IoT systems by connecting sensing and actuating units to the ATmega 328 microcontroller and observe fuel data conditions on LCD, operator mobile phone via GSM technology and ThingSpeak as webpage through user login credentials.

This study is divided into four main parts. Initially, it provides an overview of fuel monitoring problems in RABEC, as well as the inspiration and innovation of the developed IoT-based fuel monitoring system. Secondly, previous outcomes in fuel monitoring schemes are intermittently described and evaluated, including manual fuel and remote monitoring frameworks. It also designates previous research drawbacks and proposes an innovative approach to solving these issues. Thirdly, the components and methodological approach for resolving fuel monitoring concerns were discussed and addressed where a novel IoT-based fuel monitoring system with different fuel data conditions is premeditated and highly developed. Fourthly, the paper suggests and considers an alternative for the hardware and software requirements of the developed prototype with sensing and actuating unit integration and deployment. The developed IoT-based fuel monitoring system is compared with the current monitoring strategy by testing the performance. Finally, the final view and plans for further work are substantiated and documented.

2 Review of related works

It has been suggested to use an embedding system to build and deploy a GSM-based computerized fuel monitor and fuel fraud tracking as shown in [8]. To maintain accountability for the amount of fuel in the tank, the cloud-based technique was employed. When fuel fraud is detected, the sensor generates a notification, and a real-time text message is sent to the owner, who is monitoring the forgeries. An Arduino-based sensor for fuel tank monitoring was developed [9]. The technology demonstration device might be effective in the automotive sector, where it can be used to quantify fluid balance using an LED indicator. The device's accuracy and reliability are constrained through the use of passive components for both identification and detection. The control system for wirelessly accurate measurement and monitoring of fuel usage using an integrated system was created and developed in [10]. This method used the ultrasonic sensor for a height of tank measurement together with a water flow sensor for fuel level monitoring. The Arduino microcontroller was attached for system control and collects the sensor data and then analyses the data via a web page. The system has drawbacks such as inaccuracy, poor calibration, poor data transfer, and unreliability. The fuel management system was also developed as indicated in [11]. The system makes use of a microcontroller-based fuel monitoring and reed switch that still operates on the hall effect principle to determine how much fuel in the tank and fuel volume is consumed, and the fuel data are then preserved in onboard storage. In this technology, an embedded guidance system with diverse duties was created to monitor the fuel level. The difficulties of insensitivity and inefficiency of this system design have been identified and reported. Fuel monitoring with a resistive float model sensor was conventionally used as an indicator system to verify the fuel threshold in the tank. The transmitter unit model was responsive to quantifying the fuel level, while the gauge unit module was responsible for displaying that quantified level and sending the information to the driver [12]. These fuel thresholds concerned with the identification sensors are widely utilized in the brewing and wine-making industries. These detectors are mechanically linked to a float that moves upwards and downwards in response to fuel levels. The susceptibility of the sensor changes as the float moves, and the needle's position changes in response to the passage of energy via the coil. The drawback of the resistive contact-based detector element is sensing wear and damage induced by the sliding contact within the sensor elements, which also affects the sensor lifespan [13]. The fuel monitoring system based on the industrial IoT (IIoT) was developed and equipped with two-way remote monitoring and management technology, such as the easy IO (Johnson Controls) and BMS technologies. This technology plays an important role in delivering efficiencies by managing fuel that is needed and monitoring the performance of the industrial boiler, which then creates savings, eliminating the necessity for an engineer to attend site for various tasks. The easy IO modem sends data on the boiler’s gorge meter and fuel levels to the cloud-based management software (BMS), then the operator is alerted via the BMS software and finally, the operator makes changes to the boiler remotely. This monitoring system technology allows the industry to monitor fuel levels and alert teams when fuel is low easily by predicting fuel usage by utilizing this BMS software to predict the fuel usage and display the fuel data on a gauge [14]. This monitoring system does not provide real-time output when an operator is away from industry during shift working hours. The fuel level monitoring computerized technique was piloted by [15]. This method made use of an Arduino microcontroller connected with ultrasonic and LM35 sensors to sense and illustrate the tank level and fuel temperature respectively. The designed system was capable of displaying the number of fuel liters used and remaining, monitoring and measuring fuel tank levels, and detecting fuel tank temperature. However, this method was inefficient because the fuel monitoring sensor was unable to provide accurate results during the calibration process and this LM35 temperature is poor at detecting fluid fuel temperature due to calibration problems. An IoT-based system to monitor fuel storage tanks in the brewery industry has been proposed. The system utilized an ultrasonic sensor, Blynk application, and Node MCU, but this method was limited to monitoring only 10 L of fuel tank capacity and was unable to detect fuel tank conditions such as humidity [16]. The current fuel monitoring system were proved to be insensitive, inefficient, ineffective, and inaccurate for fuel data readings and fuel parametric conditions where the monitoring scheme persisted to employ a real-time monitoring system that is truly inefficient and far less safe, as well as poorer production and compared to the sophisticated remote fuel monitoring system using IoT technology, as well as a high computational time and process for the network. The objective of this study was to design and implement a novel IoT-based fuel monitoring system in which any assigned plant operator has to log into the system and access fuel data conditions on the ThingSpeak platform, where they should also be displayed on LCD with short message service notification of fuel data conditions water. This study also aimed to develop a remote fuel monitoring system that will enable RABEC Limited to improve fuel–air mixture perfection during the steam production process and minimize unbanned fuel amounts while eliminating the monthly daily reading time and stresses at the plant operator side. The developed IoT-based fuel monitoring system also presented enhanced and optimized fuel monitoring systems to the RAHA Beverages Company Limited.

3 Materials and methods

3.1 System design view

The ATmega 328UP microcontroller was chosen due to its high efficiency, compact size, very good performance, and configurability. It was powered by 5 VDC from a 220AC buck converted where the sensing and actuating units sent fuel data to this microcontroller for storage, processing, and analysis purposes. These fuel data conditions were also transferred to cloud storage using the ESP Wi-Fi internet module for data integration and visualization where fuel conditions were monitored and analysed. The ultrasonic sensor was used to measure the fuel level within the fuel tank by delivering the transmitter signal to the fuel in the tank and returning the signal information, which was then sent to the ATmega 328 microcontroller for processing. A flow rate sensor was employed to measure the fuel flow rate to detect the amount of fuel used per hour. The pressure and thermistor sensors were used to sense the fuel pressure and fuel temperature respectively. The DHT 22 sensor was also manoeuvred to measure the fuel tank humidity to detect any kind of moisture in fuel that may cause all sorts of issues that can lead to unplanned downtime and boiler failure. The GSM module was utilized to send fuel parameters such as fuel temperature, fuel pressure, and fuel usage using SMS to the mobile phone where the boiler operator can obtain fuel conditions and display them to the LCD. The buzzer was also used to alert if the fuel was reached below the predefined fuel value. Figure 2 indicates the overall system design view that was developed in this paper.

Fig. 2
figure 2

System conceptional design

3.2 Block diagram

Figure 3 depicts the proposed system’s block design, in which all sensing and actuating devices were connected to the microcontroller and activated. The 5 VDC submerged pump was powered to increase the speed of the moving fuel to reach to the ignition point faster and ignite to the boiler. The sensed and actuated data were processed by a microcontroller and sent to the cloud storage webpage via a Wi-Fi module for data analysis, storage, and visualization. The boiler operator was able to access the fuel data conditions using a mobile phone via a GSM module.

Fig. 3
figure 3

Block diagram of the proposed system

3.3 Use case system design

The system started by switching ON to power all connected sensing and actuating units. As fuel flows through the pipe from the fuel tank to the boiler, the motor pumps the fuel to increase the fuel flows. The operation manager and boiler operator were assigned to observe fuel parametric conditions such as fuel temperature, fuel pressure, fuel level tank, fuel usage, fuel humidity, and environment temperature. In addition, these fuel conditions must be sent to the assigned operator via GSM communication technology and wait for the buzzer to generate an alert regarding any abnormal condition. Any assigned operator/manager was able to log into the ThingSpeak platform to access the fuel data in order to visualize, aggregate, and analyse these fuel data conditions. Then, the user was able to log out after all fuel observation activities from the ThingSpeak platform. Figure 4 illustrates the use case diagram of the developed system which describes how the boiler operator and operation manager interacted with the system and the role of each actor.

Fig. 4
figure 4

System use case diagram

3.4 Flow chart diagram for developed system

The software design system is partially built-in on the IoT ATmega 328UP microcontroller due to its great efficiency, compactness, impressive performance, and configurability. First, this ATmega 328 microcontroller was powered by a 5 VDC power supply, and then all connected sensors (flow rate sensor, DHT 22 sensor, ultrasonic sensor, pressure sensor, GSM module, thermistor sensor, MQ35 gas detection sensor, LCD), and ESP 32 Wi-Fi module were activated. The DHT 22 sensor detects and measures any type of fuel tank humidity. The ultrasonic sensor transmits the signal to check the fuel level within the fuel tank and receives the receiver signal, and then calculates the distance travelled based on the transmitting and receiving signals. The MQ35 sensor detects any form of gas that circulates around the boiler to prevent any hazardous and harmful faults. The flow rate sensor was used to calculate the amount of fuel going from the fuel container to the boiler to determine the fuel usage on an hourly and daily basis. All sensed fuel information was processed and analysed by the microcontroller and transmitted to cloud storage through a Wi-Fi module for visualization and analysis by a designated operator/manager. The operator’s mobile phone receives fuel data messages via GSM technology and then display them on LCD. A boiler operator should be able to access these data through the ThingSpeak webpage. If the amount of fuel in the tank is less than the threshold value, the buzzer sounds, and an SMS is sent to any nominated boiler operator or operation manager through the GSM module to refill the fuel tank with other alerting information messages. Other conditions were set such that if the pressure was higher than the threshold and the fuel temperature was greater than the settable value, the system sent an SMS to the operation manager for a diagnosis alert and sent the corresponding values to the cloud. Figure 5 depicts a flowchart diagram of an IoT-based fuel monitoring system that was built and constructed to aid in the implementation of the system in this paper.

Fig. 5
figure 5

Developed system flowchart

4 Results and discussion

4.1 Developed web application system

The proposed web-based application includes the login and dashboard pages. This web-based application is designed to enable data transfer from the system. The boiler operator/or operation manager was assigned with login credentials where these users can change the password for both security and preferences reasons, which demonstrates a sense of ease of the developed system. Figure 6 shows the login page by entering the email address and clicking next which all assigned boiler operators and managers can log in and Fig. 7 indicates an assigned operator entering the password and clicking sign in.

Fig. 6
figure 6

Login page

Fig. 7
figure 7

Entering password then click sign in

Figure 8 shows that the Signing In was successfully performed.

Fig. 8
figure 8

The operator signed successfully

Figure 9 shows that an operator was able to access the fuel temperature, fuel pressure, fuel tank humidity, gas detection, and fuel tank level monitoring system on the ThingSpeak.

Fig. 9
figure 9

Fuel data condition visualization

4.2 Hardware development results

4.2.1 Liquid crystal display (LCD) I2C testing results

The LCD was able to display the environmental temperature (℃) where the boiler is installed, fuel temperature (℃), fuel pressure (Psi), humidity (%), fuel remaining (L), and display whether there is gas leakage or not. From the test experiments, the environment temperature (EnvTemp) was 31.8 ℃, while fuel temperature (Fuel Temp) was 29 ℃, and the humidity (Rh) was 38%. The fuel level resealed by the ultrasonic unit (LV) was 52 cm as the unit tank length while the remaining fuel in the tank (L) was 127.7 L. This fuel test indicates that the fuel pressure was 0.2 psi. In addition, the system proved that there was no gas detected with a normal temperature range, while the fuel level was good. The fuel–air mixture was perfect. Figure 10 shows all fuel parameters sensed by the connected sensing units and displayed in LCD, where the fuel monitoring conditions are properly fine. Figure 11 indicates that when the system demonstrates an abnormal fuel temperature of 105 ℃, gas is detected, and a poor fuel pressure of − 0.1psi is observed.

Fig. 10
figure 10

LCD testing results a fuel data and b fuel condition updates to a display

Fig. 11
figure 11

LCD with a abnormal fuel conditions and b alert notification display

4.2.2 Ultrasonic sensor testing results

The ultrasonic sensor sensed that any level increased or decreased according to the fuel usage within the fuel tank and sent the percentage level to the ThingSpeak at every change, as shown in Fig. 12.

Fig. 12
figure 12

Visualization of ultrasonic sensed fuel level values

4.2.3 MQ35 sensor testing results

The developed system detects whether the surrounding boiler contains inflammable gas, which can provoke plant incidents/or plant fires. In the testing experiment, the MQ35 sensor detected 87% of gas value. If the gas was not detected, the system reads a 0% value. Figure 13 illustrates the gas detection conditions or no gas detected in the fuel monitoring process.

Fig. 13
figure 13

Gas condition results around the boiler a Gas detected b No gas detected

4.2.4 DHT22 sensor testing results for environmental temperature monitoring within the boiler installation area

The boiler installation temperature area was detected. This temperature was considered as environmental temperature. In addition, a higher environmental temperature of 46 ℃ was observed, and the system alerted the plant operator to be alerted. The system also detects the normal temperature of 22.6 ℃ during plant operation. Figure 14 depicts the environmental temperature in the boiler installation area within RABEC.

Fig. 14
figure 14

Boiler installation environment temperature a abnormal conditions b normal conditions

4.2.5 DHT22 sensor testing results for humidity monitoring

The DHT22 sensed the humidity percentage of the fuel tank to illustrate the moisture percentage during the steam production process. As the fuel temperature may change, the humidity can also change, which should affect the fuel combustion performance. During the experiment, the humidity was equal to 91% which made fuel combustion more efficient during day-shift and in some cases, the humidity was decreased to 58% which made fuel combustion moderate in night shift operation in RABEC. Figure 15 shows the humidity observation on the ThingSpeak platform during test performance.

Fig. 15
figure 15

Sensed fuel tank humidity percentage a Day-shift b Night-shift

4.2.6 Pressure sensor testing results

The fuel pressure is the essential parameter that was very interesting when monitoring was being conducted during this study. The fuel pressure was increased during the day shift when the industry was required to produce a high amount of banana wine production, which reached up to 910 kPa while in the night shift, the production was lower because of the small production that the industry had to produce. In this case, the pressure was decreased up to 1.26 kPa. Figure 16 shows the pressure increase (day shift) where the amount of fuel consumption was high (a) and pressure decrease (night shift) during fuel pressure test performances.

Fig. 16
figure 16

Fuel pressure readings at a high pressure and b low pressure

4.2.7 Thermistor sensor testing results

The fuel temperature plays an important role in fuel combustion during the steam production process. The fuel temperature was sensed in this scenario using a thermistor sensor, and the information was sent to ThingSpeak. The operator was enabled to check the fuel temperature conditions according to any change in fuel pressure. Figure 17 demonstrates the thermistor reading of the sensed temperature of the fuel during the testing process where the fuel temperature increased to 35 ℃ and diminished to 24.37 ℃ as shown in Fig. 18.

Fig. 17
figure 17

Thermistor sensor value for raised fuel temperature

Fig. 18
figure 18

Thermistor sensor value for diminished fuel temperature

4.2.8 GSM testing results

The developed system sent the short message service (SMS) via the GSM module to the assigned operator’s mobile phone. The SMS includes the fuel level in the tank if it falls below the minimum specified, the humidity state if it is abnormal, fuel pressure, the fuel temperature if it is also abnormal, and the gas detection states. The system also shows other fuel data such as fuel pressure, fuel temperature, humidity percentage, and environmental temperature as shown in Fig. 19.

Fig. 19
figure 19

GSM test results of fuel data monitoring and fuel conditions

The developed system also sent other SMS indicating that fuel data are in good condition to secure plant operation without any abrupt plant shutdown occurrence/or disturbance. Figure 20 shows the message arrived at the operator indicating the state of pressure, fuel usage, fuel pressure of 2.0 psi, humidity of 80% (abnormal), and normal environmental temperature of 25 ℃ with no detected gas.

Fig. 20
figure 20

SMS notification regarding good fuel data conditions

Suddenly, the fuel temperature increased to 120 ℃, while the fuel pressure was lower and reached to − 0.1 psi. The fuel temperature was detected as abnormal. At this point, the operator was alerted about this fuel data condition while the humidity remained at 80%, and EnvTemp at 25 ℃. Figure 21 also indicates the message notification sent to the operator for the alert purpose of the fuel data status during the steam boiler production process.

Fig. 21
figure 21

Fuel data sent to the operator’s mobile phone regarding fuel conditions

4.3 Developed final prototype

In this paper, the final prototype was developed according to the system design of both software and hardware parts. The sensing units such as thermostat, DHT22, pressure, YF-S201 flow meter, and ultrasonic sensors were connected to the ATmega 328 microcontroller to detect fuel data conditions, such as fuel temperature, environmental together with humidity, fuel pressure, fuel usage, and fuel tank level (%) respectively. LCD and GSM module were connected to ATmega 328 microcontroller to display and observe fuel data and send these fuel data conditions to the operator via short message service (SMS) respectively. The ESP Wi-Fi module was connected to provide internet connectivity to the system for assisting operator to access IoT ThingSpeak platform as webpage via internet to visualize, analyse, and store fuel data remotely. MQ35 sensor was attached to detect the dangerous gas that can be obtained around the installed fuel tank and boiler in order to alert operator by sounding buzzer and take action accordingly. To access fuel data conditions on ThingSpeak webpage, an operator was required to login credentials for securing user personal and fuel data into the system upon successful registration. The system can be powered by AC supply through 220 VAC/5 VDC converter or DC battery power save. The developed system was demonstrated to be a real-time and remote fuel monitoring system. The system proves security of fuel data as cyberthreats mitigation. In this paper, the developed system also shows efficiency, user-friendly, reliable, accuracy, and low power consumption which makes the system to be novel and intelligent. It is applicable in beverages, and manufacturing industries for fuel management and monitoring for cost effective as sustainable technology. Figure 22 indicates the integrated circuit of assembled units during the lab testing experiment and Fig. 23 demonstrates the final prototype after the RABEC test experiment, which was successfully performed where it shows the dates of fuel data taken, environmental temperature of 34.0 ℃, fuel temperature of 26 ℃, fuel pressure of 0.4 psi, humidity of 40%, ultrasonic level sensed of 32%, fuel volume usage of 11L sensed by flow meter sensor.

Fig. 22
figure 22

Integrated circuit for the developed system

Fig. 23
figure 23

Final developed prototype for fuel monitoring system

The ATmega 328 microcontroller was powered by 5 VDC voltage to control the entire hardware system. The GSM module sends the notification message to the user’s mobile phone regarding the current fuel data states. The LCD display was also connected to the system to display the amount of fuel data, such as fuel level, temperature, pressure, humidity, and fuel usage. Figure 24 indicates the PCB hardware architecture design of the whole IoT based fuel monitoring system.

Fig. 24
figure 24

Circuit diagram of the developed system

The PCB hardware design (Fig. 24), was implemented in 3D for the proper design of the system board. ATmega 328 microcontroller was powered by VDC supply from 220 VDC/5 VDC voltage converter. SIM 800 GSM module was attached on the board. DHT and FLOW_S sensors were connected for sensing purposes. Capacitor C3 was connected for energy storage while R1, R2, and R7 resistors to stabilize the flow of current to prevent overcurrent and overheat. BUZ was also attached for alerting the operator about fuel incident and gas spreading in the installed boiler and fuel tank. Figure 25 illustrates the 3D board that controls the whole developed IoT-based fuel monitoring system at RABEC.

Fig. 25
figure 25

3D component site full view

4.4 System design comparison with the proposed system

The developed system was compared with the existing and current IoT fuel monitoring systems. The comparison metrics were accuracy, reliability, repeatability, security, efficiency, energy consumption, and real-time as functional and non-functional requirements. Table 1 shows the compared methods with the proposed system in this paper.

Table 1 Comparison between the proposed fuel monitoring and the current monitoring methods

5 Conclusion and future work

A remote IoT-based fuel monitoring system was developed and tested in this paper. Fuel data such as fuel temperature, fuel pressure, fuel level, fuel flow discharge, humidity, and environment temperature were monitored and visualized on LCD. These fuel data conditions were also sent to the operator’s mobile phone via a GSM module for ease of monitoring and accessed on the ThingSpeak webpage, where any assigned employee can log into visualize and analyse fuel data and logout. The fuel conditions were set whenever the fuel level, humidity, and fuel temperature were greater than the threshold value to send an alert message and was successfully performed. The fuel monitoring system at RABEC was improved by reducing limitations such as time-consumption, frequent accidents and death, human errors, and inconveniences. The performance of this study has been measured and provides an efficiency and effectiveness of a 99.98% success rate compared to the current fuel monitoring system that is being used at RABEC. Future work is recommended to deploy SCADA with HMI systems with IoT system integration to monitor and control fuel usage. This developed system was based on real-time and web-based fuel monitoring. Furthermore, mobile -based application to access fuel data conditions in real-time mode is also highly suggested for further study.