Carbon dioxide (CO2) is a colorless gas with a density approximately one and a half times higher than that of dry air. Its molecules consist of a carbon atom covalently double bonded to two oxygen atoms, and it occurs naturally in Earth's atmosphere as a trace gas. Since CO2 is used extensively in all spheres of human activity, its excessive concentration can lead to various disasters. For this reason, it is absolutely vital to control air quality and detect CO2 leaks. In this regard, it is of enormous benefit to science to have an online measurement tool for the CO2 capture process as it can be used to optimize the process conditions.