A combine or harvesting machine has a header on its front end which is moved into a crop swath when harvesting the crop. The swath width of the crop in front of the header is measured with two acoustic range sensors that are mounted on opposite ends of the header in a horizontal plane so they face each other. The data that is received may be utilized either to determine crop yield or to control an automatic steering control, or both.