In the dynamic operation of a boom sprayer, the boom oscillation will cause the detection value of the boom height to fluctuate greatly, resulting in failures of the control system. Based on the previously developed static boom height detection model for the entire wheat growth cycle, this study aimed to optimize the model to reduce the impact of boom oscillation on the accuracy of boom height detection. Three ultrasonic sensors were installed on each section boom of a three-section boom sprayer, and dynamic boom height detection tests were conducted at vehicle speeds of 4 to 8 km/h across six growth stages of winter wheat in Beijing, a total detection area within a single fixed operational row of approximately 14 ha. The test results showed that as vehicle speed increased, boom oscillations intensified across all sections. By setting the boom oscillation correction parameters, the detecting value of each section of boom height is corrected. The results show that the fluctuation and deviation degree of the boom height-detecting value are obviously reduced, and the correction effect is obvious. Further analysis of the detecting value of the boom height after the correction shows that the previously established detection model still maintains high detection accuracy under dynamic conditions; that is, the detection position of the ultrasonic sensor does not downward shift. This paper provides a low-cost technical method that can be directly applied to the dynamic detection of boom height.