The invention relates to the technical field of agricultural product accessory devices, in particular to an automatic spraying device for a vegetable garden. Automatic watering can be performed, no large quantity of manpower or 
material resources need to be consumed, convenience is brought to a user, and practicability is high; meanwhile, rainfall and other 
natural water sources are conveniently recycled, no large quantity of 
water resources are not likely to be consumed, and therefore the using reliability is improved; the device comprises a device body, a driving motor, a communication hose,a high-pressure water pump, a 
sprayer and a supporting plate, a working cavity is formed inside the device body, and a water inlet 
pipe is arranged at the left side wall of the device body; the device further comprises a 
humidity sensor, a sensor, a retractable frame, two sets of threaded rods, two sets of threaded pipes, two sets of driven gears, a driving gear, a chain and a 
servo motor; a regulating cavity is formed inside the retractable frame, the sensor is electrically connected with the 
humidity sensor, and the driving gear and the two sets of driven gears are sleeved with the chain; the device further comprises a flow guiding 
pipe, an 
activated carbon layer and a sliding rail, a flow guiding plate is arranged at the input end of the top of the flow guiding 
pipe, and the activatedcarbon layer is located above the sliding rail.