The object of the study is an ultrasonic sensor type UT2F/E7-OEUL which measures the presence of a body in the range of 350 to 6000 mm. The sensor was mounted in a suitable place in the combine harvester. Experiments were conducted on three types of waste vegetation mass (WVM): wheat, beans and alfalfa in field and laboratory conditions. A database of sensor measurements was obtained. A single-factor dispersion analysis task was formulated. The results obtained using relevant specialized software showed that the sensor is operational regardless of the type of WVM.