The challenge of pollution in the twenty-first century is a significant obstacle on the path to sustainability. With the growth of human populations, an increase in waste production is observed, resulting in negative impacts on the environment and human health. This issue is addressed by our project, which presents a solution for waste management through precise waste sorting. A camera and a Convolutional Neural Network (CNN) are employed by our system to accurately classify waste with a 99% success rate. A robotic arm is also incorporated to physically sort the waste into designated bins. All hardware components are connected through a wireless network, which provides numerous advantages such as enhanced worker health, improved efficiency, and reduced human labor, ultimately contributing to sustainable development. The proposed waste management framework includes a developed hardware prototype, providing a comprehensive solution for efficient waste management. An interesting aspect of the project is its potential application on embedded systems with limited configuration, paving the way for a waste management industry that utilizes Internet of Things (IoT) devices at the source. This approach can aid in achieving the goal of establishing clean and pollution-free cities.