Like, beverage cans as in a soda machine? Do they move down a chute or on a path or something? A small microswitch

like this could do it, if so.
Like, beverage cans as in a soda machine? Do they move down a chute or on a path or something? A small microswitch

like this could do it, if so.