The invention discloses a device for
trapping pests for ecological planting of basil grass, comprising a base, a rain shield, an outer cylinder, an inner cylinder, an
insect trap lamp, and an electric grid. A connecting cylinder is installed in the middle of the upper end of the base, a connecting rod is nested and installed inside the connecting cylinder, and a connecting plate is installed on the upper end of the connecting rod. The invention emits sound
waves through a sonic
insect trap to induce pests to gather around the
trapping device, introduces pests into the
trapping device through an
insect trap lamp and a
medicine capsule, and the
insect trap channel is trumpet-shaped to prevent pests entering the inside of the device from escaping in a short time, drives the electric grid downward regularly through a cylinder, kills the pests in the device, and closes the
insect trap channel formed by the inner cylinder and the outer cylinder during the killing process to prevent the pests from escaping, and opens an overflow port at the bottom of the
medicine capsule placement groove to prevent the water from flooding the inside of the
medicine capsule placement groove during the
flood season, drives the medicine capsule to rise through the
buoyancy of a rubber float, avoids the failure of the medicine capsule from being soaked in water, and prevents the
drug from leaking and polluting the environment.