Range Sensor for Dirty garbage bins

Unfortunately, I want to design something that goes on your typical dumpster bin, like this:

I am from the UK and I have never seen a bin like that before.