Smart Trash can be done with servo motors or stepper motors.
This system monitors the garbage level and sends an sms to the user when value crosses threshold value.
Trashcan project.
Give a bottle to read a book in library. Transforming Trash into Knowledge at the Library
Press a sensor, and your trashcan will open automatically.