The present invention relates to a planting machine. For performing vertical control and fluctuation control of the planting machine, a height sensor which detects the height of the machine body fromthe farmland surface and an inclination sensor that detects the inclination in the horizontal direction are provided. The inclination sensor is well known for being a sensor with a vibrator structure,but the precision and sensitivity adjustment of the inclination detection is difficulty, and the control structure is complicated. The planting machine provided by the invention is provided with a rotation driver which varies the relative height of the left wheel and the right wheel and controls the horizontal inclination of the machine body, and a horizontal seedling planting funnel which movesvertically for planting the seedling on the farmland. A horizontal pressing tool (4) which can move vertically according to the planting position of the left seedling and the right seedling of each seedling planting funnel is provided. Horizontal sensor arms (47) which are respectively linked with the vertical motion of the horizontal pressing tool for operating are provided separately. Furthermore a machine body gesture controller which detects the machine body inclination with the alternation of the interval of the sensor arms and activates the rotation driver is provided.