Research in agriculture is expanding. Agriculture in particular relies heavily on earth and environmental factors, such as temperature, humidity, and rainfall, to forecast crops. Crop prediction is a crucial problem in agriculture, and machine learning is an emerging study area in this area. Any grower is curious to know how much of a harvest he can anticipate. In the past, producers had control over the selection of the product to be grown, the monitoring of its development, and the timing of its harvest. Today, however, the agricultural community finds it challenging to carry on because of the sudden shifts in the climate. As a result, machine learning techniques have increasingly replaced traditional prediction methods. These techniques have been employed in this research to determine crop production. It is critical to use effective feature selection techniques to transform the raw data into a dataset that is machine learning compatible in order to guarantee that a particular machine learning (ML) model operates with a high degree of accuracy. The accuracy of the model will increase by reducing redundant data and using only data characteristics that are highly pertinent in determining the model's final output. In order to guarantee that only the most important characteristics are included in the model, it is necessary to use optimal feature selection. Our model will become overly complex if we combine every characteristic from the raw data without first examining their function in the model-building process. Additionally, the time and area complexity of the Machine learning model will grow with the inclusion of new characteristics that have little impact on the model's performance. The findings show that compared to the current classification method, an ensemble technique provides higher prediction accuracy.