Certified GKH Gardening Expert
There are many ways to go about this. The best would be to take some hot peppers, slice them, and strain after this cools. Use the water to spray onto the plants. This will be enough to keep almost any pest away. There are other ways as well.
This collection of article will give you more information along with many other organic gardening tips: https://www.gardeningknowhow.com/special/organic