IoT-Based Air Conditioning Control System for Energy Saving

- Waluyo, Andre Widura, Febrian Hadiatna, Ridwan Syamsul Fikri


A high portion of electric consumption is air conditioning in householders or offices, reaching 42%. Therefore, it is necessary to automatically regulate air conditioning operations for energy saving using a control system, usually involving its hardware. As another option, the control system also involves electronic devices and software. This research developed an automatic control system using an ESP32 microcontroller integrated into the Blynk-based internet of things (IoT) for energy-saving air conditioning. The ESP32 was programmed using Arduino IDE and combined with a motion sensor to maximize energy saving. The motion sensor was a trigger to turn on the system. The recorded data were current, voltage, power, temperature, and motion detection. Based on the recorded power, the consumed energy was computed using trapezoidal and Simpson's composite rules of numerical integrations and ordinary methods. The testing was conducted in conventional, manual, and automatic operations. The yielded automatic control system operated adequately. The testing results revealed that the automatic operation saved 1.15 kWh (15.00%),0.99 kWh (13.66%), and 1.14 kWh (14.87%) average daily energy compared to the conventional operation, respectively, by using the ordinary, Simpson's composite rule, and trapezoidal composite rule computations. While the automatic compared to the manualmethodssaved1.68 kWh (20.44%), 1.78 kWh (22.14%), and 1.66 kWh (20.24%), respectively, for the same computations. Thus, the automatic system considerably saved energy compared to conventional and manual operations. Moreover, these energy savings were also higher than some previous research on air conditioning energy savings.


Air conditioning; energy; ESP32; motion sensor; Simpson; trapezoidal.

Full Text:



R. Kosonen and B. Zhou, “Room air conditioningâ€, in Industrial Ventilation Design Guidebook, Vol. 1 Fun. London, UK: Academic Press, 2020.

T. Randazzo, E. De Cian, and M. N. Mistry, “Air conditioning and electricity expenditure: The role of climate in temperate countries,†Econ. Model., vol. 90, pp. 273–287, Aug. 2020, doi: 10.1016/j.econmod.2020.05.001.

Y. Fu, Z. O’Neill, J. Wen, A. Pertzborn, and S. T. Bushby, “Utilizing commercial heating, ventilating, and air conditioning systems to provide grid services: A review,†Appl. Energy, vol. 307, no. 11813, Feb. 2022, doi: 10.1016/j.apenergy.2021.118133.

X. Xu, W. Liu, and Z. Lian, “Dynamic indoor comfort temperature settings based on the variation in clothing insulation and its energy-saving potential for an air-conditioning system,†Energy Build., vol. 220, p. 110086, Aug. 2020, doi: 10.1016/j.enbuild.2020.110086.

H. Yin et al., “Ventilation and air conditioning system of deep-buried subway station in sub-tropical climates: Energy-saving strategies,†Appl. Therm. Eng., vol. 178, Sep. 2020, p. 115555, 2020, doi: 10.1016/j.applthermaleng.2020.115555.

Z. Wu, N. Li, P. Wargocki, J. Peng, J. Li, and H. Cui, “Field study on thermal comfort and energy saving potential in 11 split air-conditioned office buildings in Changsha, China,†energy, vol. 182, pp. 471–482, Sep. 2019, doi: 10.1016/

L. Pan, C. Liu, Z. Zhang, T. Wang, J. Shi, and J. Chen, “Energy-saving effect of utilizing recirculated air in electric vehicle air conditioning system,†Int. J. Refrig., vol. 102, pp. 122–129, Jun. 2019, doi: 10.1016/j.ijrefrig.2019.03.018.

E. Zanchini and C. Naldi, “Energy saving obtainable by applying a commercially available M-cycle evaporative cooling system to the air conditioning of an office building in North Italy,†energy, vol. 179, pp. 975–988, Jul. 2019, doi: 10.1016/

L. Lou et al., “Thermoelectric air conditioning undergarment for personal thermal management and HVAC energy saving,†Energy Build., vol. 226, p. 110374, Nov. 2020, doi: 10.1016/j.enbuild.2020.110374.

H. Yang, J. Wang, N. Wang, and F. Yang, “Experimental study on a pulsating heat pipe heat exchanger for energy saving in air-conditioning system in summer,†Energy Build., vol. 197, pp. 1–6, Aug. 2019, doi: 10.1016/j.enbuild.2019.05.032.

Y. Guo and H. Chen, “Fault diagnosis of VRF air-conditioning system based on improved Gaussian mixture model with PCA approach,†Int. J. Refrig., vol. 118, pp. 1–11, Oct. 2020, doi: 10.1016/j.ijrefrig.2020.06.009.

Y. Cheng, S. Zhang, C. Huan, M. O. Oladokun, and Z. Lin, “Optimization on fresh outdoor air ratio of air conditioning system with stratum ventilation for both targeted indoor air quality and maximal energy saving,†Build. Environ., vol. 147, pp. 11–22, Jan. 2019, doi: 10.1016/j.buildenv.2018.10.009.

Z. Yang et al., “Experimental performance analysis of hybrid air conditioner in cooling season,†Build. Environ., vol. 204, pp. 1-19, Oct. 2021, doi: 10.1016/j.buildenv.2021.108160.

İ. Atmaca, A. Şenol, and A. Çağlar, “Performance testing and optimization of a split-type air conditioner with evaporatively-cooled condenser,†Eng. Sci. Technol. an Int. J., vol. 32, Aug., 2022, doi: 10.1016/j.jestch.2021.09.010.

A. Lahlou, F. Ossart, E. Boudard, F. Roy, and M. Bakhouya, “Optimal management of thermal comfort and driving range in electric vehicles,†Energies, vol. 13, no. 17, 2020, doi: 10.3390/en13174471.

R. Elazab, O. Saif, A. M. A. A. Metwally, and M. Daowd, “Mixed integer smart off-grid home energy management system,†Energy Reports, vol. 7, pp. 9094–9107, Nov. 2021, doi: 10.1016/j.egyr.2021.11.227.

X. Li, S. Chen, H. Li, Y. Lou, and J. Li, “Multi-dimensional analysis of air-conditioning energy use for energy-saving management in university teaching buildings,†Build. Environ., vol. 185, no. 107246, Nov. 2020, doi: 10.1016/j.buildenv.2020.107246.

R. Opoku, I. A. Edwin, and K. A. Agyarko, “Energy efficiency and cost saving opportunities in public and commercial buildings in developing countries – The case of air-conditioners in Ghana,†J. Clean. Prod., vol. 230, pp. 937–944, Sep. 2019, doi: 10.1016/j.jclepro.2019.05.067.

D. Zhang, X. Huang, N. Cai, L. Wang, and Z. Zhang, “Study on energy consumption model of multi-unit air conditioning system with digital scroll compressor,†J. Therm. Sci. Technol., vol. 15, no. 1, pp. 1–18, 2020, doi: 10.1299/jtst.2020jtst0009.

N. Ismail and D. Ouahrani, “Modelling of cooling radiant cubicle for an office room to test cooling performance, thermal comfort and energy savings in hot climates,†energy, vol. 244, Apr. 2022, doi: 10.1016/

B. Mathieu, C. Westphal, and P. Truong, “Towards the Usage of CCN for IoT Network†in Internet of Things (IoT) in 5G Mobile Technologies. Switzerland: Springer International Publishing, 2016.

N. Futawatari, Y. Udagawa, T. Mori, and H. Hayama, “Improving prediction accuracy concerning the thermal environment of a data center by using design of experiments,†Energies, vol. 13, no. 18, 2020, doi: 10.3390/en13184595.

C. Lork et al., “An uncertainty-aware deep reinforcement learning framework for residential air conditioning energy management,†Appl. Energy, vol. 276, p. 115426, Oct. 2020, doi: 10.1016/j.apenergy.2020.115426.

B. K. Tripathy and J. Anuradha, Internet of Things (IoT), Technologies, Applications, Challenges, and Solutions. Boca Raton, FL: CRC Press, 2018.

R. Kannan, M. S. Roy, and S. H. Pathuri, “Artificial Intelligence Based Air Conditioner Energy Saving Using a Novel Preference Map,†IEEE Access, vol. 8, pp. 206622–206637, Nov. 2020, doi: 10.1109/ACCESS.2020.3037970.

X. Wang, X. Mao, and H. Khodaei, “A multi-objective home energy management system based on internet of things and optimization algorithms,†J. Build. Eng., vol. 33, p. 101603, Jan. 2021, doi: 10.1016/j.jobe.2020.101603.

D. F. Espejel-blanco, J. A. Hoyo-montaño, J. Arau, G. Valencia-palomo, A. Garc, and R. Hern, “HVAC Control System Using Predicted Mean Vote Index for Energy Savings in Buildings,†Buildings, vol. 12, no. 38, pp. 1–26, Jan. 2022, doi: 10.3390/buildings12010038.

L. Zhao, S. Qu, J. Zeng, and Q. Zhao, “Energy-saving and management of telecom operators’ remote computer rooms using IoT technology,†IEEE Access, vol. 8, pp. 166197–166211, Sep. 2020, doi: 10.1109/ACCESS.2020.3022641.

E. Png, S. Srinivasan, K. Bekiroglu, J. Chaoyang, R. Su, and K. Poolla, “An internet of things upgrade for smart and scalable heating, ventilation and air-conditioning control in commercial buildings,†Appl. Energy, vol. 239, pp. 408–424, Apr. 2019, doi: 10.1016/j.apenergy.2019.01.229.

S. Dhanalakshmi, M. Poongothai, and K. Sharma, “IoT Based Indoor Air Quality and Smart Energy Management for HVAC System,†Procedia Comput. Sci., vol. 171, pp. 1800–1809, 2020, doi: 10.1016/j.procs.2020.04.193.

A. Kumar, S. Sharma, N. Goyal, A. Singh, X. Cheng, and P. Singh, “Secure and energy-efficient smart building architecture with emerging technology IoT,†Comput. Commun., vol. 176, pp. 207–217, Aug. 2021, doi: 10.1016/j.comcom.2021.06.003.

L. Jia, J. Liu, and S. Wei, “Optimal chiller loading in dual-temperature chilled water plants for energy saving,†Energy Build., vol. 252, Dec. 2021, doi: 10.1016/j.enbuild.2021.111425.

B. Moeini et al., “Box plots: A simple graphical tool for visualizing overfitting in peak fitting as demonstrated with X-ray photoelectron spectroscopy data,†J. Electron Spectros. Relat. Phenomena, vol. 250, Jul. 2021, doi: 10.1016/j.elspec.2021.147094.

L. Zhang et al., “Research on image transmission mechanism through a multimode fiber based on principal component analysis,†Opt. Lasers Eng., vol. 134, Nov. 2020, doi: 10.1016/j.optlaseng.2020.106197.

R. K. Gupta, Numerical Methods: Fundamentals and Applications. Cambridge, UK: Cambridge Univ. Press, 2019.



  • There are currently no refbacks.

Published by INSIGHT - Indonesian Society for Knowledge and Human Development