The Diffuse Sensor is a nice all-around solution for detecting most solid, non transparent products.  It can be positioned to sense top down, bottom up, or from the side.  Includes 3m / 10' cable with M12 connectors.

Diffuse Sensor Assembly, 4" range

SKU: FT-SC-SK-1
$139.00Price