Government and officials set rules to keep the air clean and healthy. To accommodate this, an efficient air quality monitoring system is required. Real-time monitoring is crucial for observing air quality. This allows for immediate action if air quality declines. However, current systems often rely on just one measurement point, risking inaccurate results due to rapid pollutant dispersion. To overcome this problem, researchers propose designing an air quality monitoring system based on a wireless sensor network. Sensor nodes will be installed at various points within the area to be monitored, forming a connected sensor network using the ESP-Now protocol. The data obtained from each node will be sent to the base station, then the data will be transmitted via the Message Queuing Telemetry Transport (MQTT) protocol using the internet network. Thus, this design produces a wireless sensor network that is integrated with the internet of things (IoT). The advantages of the IoT system include ease of data storage and accessibility that can be accessed from anywhere as long as it is connected to the internet and has appropriate authorization.