Turn an ordinary bin with a hinged lid into a touch-free one: an ultrasonic sensor sees your hand, a servo lifts the lid, holds it open, then closes it gently.
Free. Make an account and you come straight back to start it.
Safety: Low voltage at the bin: 5 V for the servo, from a 12 V plug-in adapter. Use a closed, shop-bought adapter and never open it. A closing lid can pinch fingers: the code closes it slowly and reopens if something is in front of the sensor, but it can't see fingers at the rim or hinge: keep them clear. Keep the electronics away from wet rubbish.
The ultrasonic sensor measures distance, and you've found a spot on the bin where it sees a hand but not the floor or the wall.
Unplug USB, then wire the sensor to the Uno one wire at a time.
Check: VCC goes to 5V and GND to GND. Swapped, the sensor can be damaged.
Safety: Unplug USB before you change any wire.
63.7 cm18.2 cm NEAR