Transparent-object sensor for the food and beverage industry