<span>Mass migration from rural areas to urban areas has caused problems of traffic congestion, high industrial concentration and inequity in the distribution of housing in the world's capitals, generating a significant threat to sustainable development and public health due to air pollution air. In the Peruvian context, the importance of real-time monitoring of air quality is highlighted according to the standards established by the government. Several studies propose real-time environmental monitoring systems using internet of thing (IoT) technologies, electrochemical and optical sensors to measure pollutants, highlighting the need for data analysis. The objective of the paper is to show the implementation of IoT devices called sensor nodes, with long range wide area network (LoRaWAN) transmission technology for continuous monitoring of polluting gas concentrations. In addition, they are integrated into a central node called gateway to perform real-time monitoring through a web application. As an initial result, IoT devices demonstrated their effectiveness for real-time monitoring. Despite being a prototype-level result, the next stage involves its deployment at public transport stops in Lima. Overcoming the limitations of the solution, this paper establishes the foundation for future research on pollution and public health.</span>