To automate the packaging machine for the 2050g ice cubes (with ice cubes measuring 2.5 cm in diameter and 4-4.5 cm in height) with a bag size of 2250x340mm, along with the cup filler and Z-shaped conveyor: The packaging machine should be equipped with a sensor or level detector inside the ice cube storage bin or hopper to monitor the ice cube level.