The Internet of Things (IoT) has recently developed opportunities for various industries, including the petrochemical industry, that allow for intelligent manufacturing with real-time management and the analysis of the produced big data. In oil production, extracting oil reduces reservoir demand, causing oil supply to fall below the economically viable level. Gas lift is a popular artificial lift system that is both efficient and cost-effective. If gas supplies in the gas lift process are not limited, a sufficient amount of gas may be injected into the reservoir to reach the highest feasible production rate. Because of the limited supply of gas, it is essential to achieve the sustainable utilization of our limited resources and manage the injection rate of the gas into each well in order to enhance oil output while reducing gas injection. This study describes a novel IoT-based chemical reaction optimization (CRO) technique to solve the gas lift allocation issue. The CRO algorithm is inspired by the interaction of molecules with each other and achieving the lowest possible state of free energy from an unstable state. The CRO algorithm has excellent flexibility, enabling various operators to modify solutions and a favorable trade-off between intensification and diversity. A reasonably fast convergence rate serves as a powerful motivator to use as a solution. The extensive simulation and computational study have presented that the proposed method using CRO based on IoT systems significantly improves the overall oil production rate and reduces gas injection, energy consumption and cost compared to traditional algorithms. Therefore, it provides a more efficient system for the petroleum production industry.