This code is for Smart Dustbin in which we can check the level of garbage in dustbin with the help of Ultrasonic sensor and another Ultrasonic sensor for check the distance between in front object and dustbin means to detect in front object. This will help us in getting information about when to empty the dustbin if it gets full so that there will be no garbage here and there outside dustbin. These type of d Ultrasonic distance sensor based dustbin will help in creating a clean surrounding.