A method and apparatus for controlling a height of an agricultural equipment component is described in which an average crop height is determined. In one embodiment, the agricultural equipment component is controlled to maintain a predetermined distance from a current top of crop level. If a current top of crop level cannot be determined, a virtual top of crop level is calculated using the average crop height value. The agricultural equipment component is controlled to maintain a predetermined distance from the virtual top of crop level. In another embodiment, the agricultural equipment component is controlled to maintain a predetermined distance from current ground level. If a current ground level cannot be determined, a virtual ground level is calculated using the average crop height value. The agricultural equipment component is controlled to maintain a predetermined distance from said virtual ground level. An ultrasonic sensor is also provided.