PROBLEM TO BE SOLVED: To enable more accurately detecting an obstacle existing around a vehicle body. An agricultural machine includes a vehicle body having front wheels and rear wheels, an obstacle detection device capable of detecting an obstacle, and a position changing mechanism capable of changing the position of the obstacle detection device. The position change mechanism changes the position of the obstacle detection device to a detection position that is a predetermined position and detects an obstacle and a retracted position that retracts from the detection position to the vehicle body side. The position change mechanism repositions the obstacle detection device to a plurality of detection positions where obstacles can be detected. [Selection diagram] Fig. 1【課題】より精度よく車体の周囲に存在する障害物を検出することができるようにする。【解決手段】農業機械は、前輪及び後輪を有する車体と、障害物を検出可能な障害物検出装置と、障害物検出装置の位置を変更可能な位置変更機構と、を備えている。位置変更機構は、障害物検出装置を、予め定められ位置であって障害物を検出する検出位置と、検出位置から車体側に退避する退避位置とに位置変更する。位置変更機構は、障害物検出装置を、障害物を検出可能な複数の検出位置に位置変更する。【選択図】図1