Using OPC UA for IoT-based Indoor Air Quality Monitoring and Control System

Document Type : Original Article


1 Assistant Professor, Department of Information and Communication Technology, Amin Police University, Tehran, Iran

2 Master of Software Engineering, Department of Electrical and Computer Engineering, Al Taha University, Tehran, Iran


Purpose: The main goal of this study is to design a monitoring and control system for air quality, the level of gases released in the environment, humidity and temperature based on the Internet of Things in industrial environments, which in addition to the cost-effectiveness of the proposed system in terms of energy consumption and cost, Improve the level of security in sending and receiving data. Another goal of this plan is easy access for end users to real-time data in environmental conditions. The general purpose of the proposed system is the ability to detect hazards, increase safety and productivity in industrial environments, and alert users and industrial owners if the data exceeds the limits defined by environmental standards.
Methods: In order to achieve this goal, data protocols compatible with industrial environments and communication protocols with proper performance in data transmission, in the system of sensors based on the Internet of Things in similar ideas, with a focus on air quality monitoring and control, are investigated. As a result of comparing related articles, in order to implement the proposed idea, OPC UA data protocol and 4G LTE communication protocol have been used and the performance of the proposed system has been tested in an industrial warehouse under fire and clean air simulation. The results show that the idea of this research has better efficiency than similar studies in terms of two factors of energy consumption and the security level of sending and receiving data. For this purpose, the software infrastructure of the Internet of Things has been examined with the factor of information protection and increasing the security level in order to visualize environmental data. In the proposed monitoring and control system, from the Internet of Things platform on the cloud server side and Raspberry Pi board for control and measurement, the MQ2 sensor for detecting smoke and the concentration of LPG, alcohol, propane, hydrogen, methane and carbon monoxide gases, the MQ135 sensor is used to measure air quality and detect ammonia and carbon dioxide gases and DHT22 sensor to measure humidity and temperature, as well as a 4G mobile modem to load received environmental data on the client
Findings: In investigating the performance of the proposed system under fire simulation of wood, cloth and paper and clean air in an industrial warehouse for fourteen days, in two situations of Raspberry Pi board connected to 4G LTE and Wi-Fi modem, the fire simulation value has been given. Detected in Wi-Fi connection mode was lower than 4G LTE mode and lower than previously predicted, but finally compared to the results of seven days of testing for each connection mode including clean air and fire simulation recorded in Things Board cloud platform. Regardless of the minor differences, they are similar.
Conclusions: The results show that the idea of this research has higher efficiency than similar studies in terms of two factors of energy consumption and the security level of sending and receiving data.


BinMasoud, A. & Cheng, Q. (2019). Design of an IoT-based Vehicle State Monitoring System Using Raspberry Pi. 2019 International Conference on Electrical Engineering Research & Amp; Practice (ICEERP). DOI:
Chiesa, G., Cesari, S., Garcia, M., Issa, M. & Li, S. (2019). Multisensor IoT Platform for Optimising IAQ Levels in Buildings through a Smart Ventilation System. Sustainability, 11(20): 5777. DOI:
Corotinschi, G. & Gaitan, V.G. (2018). Enabling IoT connectivity for Modbus networks by using IoT edge gateways. In: 2018 International Conference on Development and Application Systems (DAS). DOI:
Gotsis, A., Lioumpas, A.S. & Alexiou, A. (2013). Analytical modelling and performance evaluation of realistic time-controlled M2M scheduling over LTE cellular networks. Transactions on Emerging Telecommunications Technologies, 24(4): 378–388.         
Kodali, R.K. & Valdas, A. (2018). MQTT Implementation of IoT based Fire Alarm Network. 2018 International Conference on Communication, Computing and Internet of Things (IC3IoT). DOI:
Kumar, S. & Jasuja, A. (2017). Air quality monitoring system based on IoT using Raspberry Pi. In: 2017 International Conference on Computing, Communication and Automation (ICCCA). DOI:
Lachhab, F., Bakhouya, M., Ouladsine, R. & Essaaidi, M. (2018). Context-driven monitoring and control of buildings ventilation systems using big data and Internet of Things–based technologies. Journal of Systems and Control Engineering, 233(3): 276–288.        
Lekic, M. & Gardasevic, G. (2018). IoT sensor integration to Node-RED platform. 2018 17th International Symposium Infoteh-Jahorina (Infoteh).
Makarizadeh, Sh. & Ghafarzadeh, F. (2013). Application of OPC in SCADA. In: International electricity conference. Government and public organizations and centers. [in persian]
Miorandi, D., Sicari, S., De Pellegrini, F. & Chlamtac, I. (2012). Internet of things: Vision, applications and research challenges. Ad Hoc Networks, 10(7): 1497–1516.
Najari Ghazaani, A.R. & Qobaei Arani, M. (2017). Design and implementation of the transport fleet management system using the WSO2 Internet of Things platform. Master's thesis. Alame Faiz Kashan Institute of Higher Education, Technical and Engineering Faculty. [in persian]
Pasumponpandian (2020). Analysis of Data Stream Processing at Edge Layer for Internet of Things. Journal of ISMAC. DOI:
Rahman, M., Rahman, A., Hong, H.J., Pan, L.W., Sarwar Uddin, M.Y., Venkatasubramanian, N. & Hsu, C.H. (2019). An adaptive IoT platform on budgeted 3G data plans. Journal of Systems Architecture, 97: 65–76. DOI:
Ramalingam, S., Baskaran, K. & Kalaiarasan, D. (2019). IoT Enabled Smart Industrial Pollution Monitoring and Control System Using Raspberry Pi with BLYNK Server. In: 2019 International Conference on Communication and Electronics Systems (ICCES).            
Saini, J., Dutta, M. & Marques, G. (2020). Indoor Air Quality Monitoring Systems Based on Internet of Things: A Systematic Review. International Journal of Environmental Research and Public Health, 17(14): 4942. DOI:
Scott, T.L. & Eleyan, A. (2019). CoAP based IoT data transfer from a Raspberry Pi to Cloud. 2019 International Symposium on Networks, Computers and Communications (ISNCC).              
Shete, R. & Agrawal, S. (2016). IoT based urban climate monitoring using Raspberry Pi. In: 2016 International Conference on Communication and Signal Processing (ICCSP).          
Sun, C., Guo, K., Xu, Z., Ma, J. & Hu, D. (2019). Design and Development of Modbus/MQTT Gateway for Industrial IoT Cloud Applications Using Raspberry Pi. In: 2019 Chinese Automation Congress (CAC). DOI:
Syafrudin, M., Alfian, G., Fitriyani, N. & Rhee, J. (2018). Performance Analysis of IoT-Based Sensor, Big Data Processing, and Machine Learning Model for Real-Time Monitoring System in Automotive Manufacturing. Sensors, 18(9): 2946. DOI:
Taibi, H.R. (2016). Special file on Internet of Industrial Things. Network Monthly, 19(194):
150-151. [in persian]
Takefuji, Y. (2021). Python Programming in PyPI for Translational Medicine. International Journal of Translational Medicine, 1(3): 323–331. DOI:
Team, P.F. (2022). Importance of having a good monitoring system. Pandora FMS Monitoring Blog. URL=
Yang, X., Yang, L. & Zhang, J. (2017). A WiFi-enabled indoor air quality monitoring and control system: The design and control experiments. 2017 13th IEEE International Conference on Control & Amp; Automation (ICCA). DOI:
Zakaria, N.A., Zainal, Z., Harum, N., Chen, L., Saleh, N. & Azni, F. (2018). Wireless Internet of Things-Based Air Quality Device for Smart Pollution Monitoring. International Journal of Advanced Computer Science and Applications, 9(11).