This Project worked if someone pass in front of the trash bin,ultrasonic sensor will detect the distance,we set the distance in less 10cm so if someone pass less 10 cm from the trashbin,ultrasonic sensor will work and moved the servo motor, so that the trash bin will be open,and the Green LED will On,and if the distance more that 10cm the trashbin will keep closed and the Red LED will On.