Street lighting promotes safety by allowing pedestrians and vehicles to see each other and prevents accidents, robberies, unwanted theft, and other crimes that occur on the highway. But the electrical energy consumed for street lighting is a significant concern for developing countries, especially when the lights are on at night during the absence of objects. Also, maintaining the street lighting system is costly, and manually controlling and repairing the lights is unfeasible. Considering the above problems, this paper presents an IoT-based street lighting system that mitigates the above challenges by automating the system. The proposed system will run entirely on solar power systems, which draw clean, pure energy from the sun. As the object gets closer, the lights will become brighter and reduce the brightness as objects travel away. The system also cleans the lights once every week by servo motor. To determine whether the light needs repairing, replacing, or not, an ESP8266 Wi-Fi module is used that transmits a report from the location to a central server. The system also can measure air pollutant gases like Nitrogen Dioxide (NO2), Sulphur Dioxide (SO2), etc., by using the MQ- 135 sensors and sending the information to the web server for further analysis of air quality. The proposed smart street lighting system is low-cost, faster-response, eco-friendly, and energy-efficient. It aims to reduce active power loss while boosting energy efficiency, monitoring air quality, decreasing the cost of maintaining the street lighting system, and reducing the hard labor cost of controlling the system.