An integrated system for traffic management that combines environmental monitoring and pollutant detection using Raspberry Pi. The system interfaces with MQ7 and MQ135 gas sensors via an ADC module to measure air quality parameters such as carbon dioxide and other pollutants. Additionally, DHT11 and BMP sensors are incorporated to monitor weather conditions including temperature, humidity, and atmospheric pressure. The Raspberry Pi serves as the main processor, gathering information from the several sensors. To evaluate the environmental conditions, the gathered data is compared to predetermined threshold values through analysis. If the sensor data surpasses these thresholds, indicating adverse weather or elevated pollutant levels, the system triggers an alert mechanism.