This document describes a study that uses machine learning techniques to predict suitable crops and soil fertility based on analyzing soil nutrients. The researchers collected soil sample data and removed unnecessary attributes before training decision tree, KNN, and random forest models. The random forest model achieved the highest accuracy of 93.6% for predicting crops compatible with the soil's nutrient content and properties. The study aims to help farmers select optimal crops and improve agricultural yield through automated, real-time soil analysis and recommendations.