Sorting machine with weighing function, specially designed for sorting pumpkins. The pumpkins arrive at the checkweigher by means of a conveyor belt. The pumpkins are weighed and transported further. Based on the weight of the pumpkin, they are taken off the conveyor belt at the desired location.