Depending on the variety of sizes and shapes of the objects that can be placed in a container, an infrared beam break or proximity sensor, ultrasonic, or something similar may work and may be relatively simple to install.
Depending on the variety of sizes and shapes of the objects that can be placed in a container, an infrared beam break or proximity sensor, ultrasonic, or something similar may work and may be relatively simple to install.