The invention discloses perforating equipment for machining special sensors for agricultural machinery. The equipment comprises a supporting plate, the right side wall of the supporting plate is fixedly connected with an air cylinder, the telescopic end of the air cylinder is fixedly connected with a mounting plate, a drilling motor is fixedly connected to the lower surface of the mounting plate,the output end of the drilling motor is fixedly connected with a rotating shaft, the outer surface of the rotating shaft is fixedly connected with a gear ring, a bearing is fixedly connected to the lower surface of the mounting plate, and a threaded sleeve is fixedly connected to the interior of the bearing. According to the equipment, a driving motor is arranged, when the equipment is used, the driving motor drives a rotating rod to rotate, the rotating rod drives a bevel gear rod to rotate through a first bevel gear and a second bevel gear, the bevel gear rod drives a cam to rotate, when thecam is rotated to be connected with a funnel, the funnel is extruded to move leftwards, when the cam rotates to be staggered with the funnel, the funnel moves rightwards under the action of a tensionspring, so that the effect that the funnel is shaken leftwards and rightwards to shake off scraps is realized, and therefore the purpose of preventing blockage is achieved.