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.
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