So this is my third project, namely a smart trashbin that works using an ultrasonic sensor to move the servo so that the cover can move from 0 degrees to 180 degrees. So, when there is an object in front of the ultrasonic sensor, the servo will move the cover so that it will open. However, if there is no object in front of the ultrasonic sensor, the servo will move the cover so that it will close again.