Protecting our environment and ensuring the safety of our food supply stand as paramount concerns in today's world. Pesticides have become a global solution for managing pests and diseases in agriculture. Employing sophisticated mathematical modeling techniques allows for a comprehensive examination of their adverse effects. Pesticides have the ability to kill plants and damage soil, potentially leading to a fall in both plant numbers and soil quality. The use of delay differential equations is important in capturing the long-term effects of pesticides on plants and soil health. These equations model the various impacts of altering pesticide dosages and application rates on plants and soil, exposing crucial elements determining pesticide use's environmental implications. MATLAB also provides a graphical model of this complicated system, providing a visual understanding of the complex interaction between pesticides and ecological processes.