Public lighting plays an essential role in our communities; it not only provides visibility during the nighttime hours, but also has a significant impact on safety, quality of life, economic activity, and social cohesion in urban areas. Its importance stems from its ability to create secure, attractive, and functional environments for all citizens. Quito's city reports of failures or breakdowns in luminaires or lamp pole are typically obtained from users who detect the issues and the time it takes to resolve the reported problem is high, making the lighting service inefficient for pedestrians and drivers. In the present work, a public lighting maintenance management system has been developed to optimize maintenance tasks for luminaires and lamp pole. This system employs technologies like the Internet of Things (IoT), data-driven planning, and automated tracking to improve efficiency, costs reduction, and maintain reliable and safe public illumination. The proposed system includes an IoT device responsible for real-time data collection about the state of luminaires, lamp pole, energy consumption, operation, and other relevant parameters. This is possible due to integrated sensors that detect faults, changes in lighting intensity, and other anomalies. The data collected by the IoT device is transmitted to a broker and stored in a NoSQL database. Subsequently, this information is analyzed using the proposed software, enabling pattern and trend identification, set thresholds and alerts to detect issues like inactive lights, changes in energy consumption, or performance deterioration, planning maintenance, task tracking, and route optimization.