With a little ingenuity and a few parts you can easily pick up on Amazon, you can build your own smart garbage can. We'll ...
In Arduino IDE menu, go to Sketch -> Include Libray -> Add .ZIP Library... and then select the zipped library. After including it, you can add the include headers to your current sketch with Sketch -> ...