Breast cancer is a prevalent and potentially life-threatening disease that affects millions of individuals worldwide. Early detection plays a crucial role in improving patient outcomes and increasing the chances of survival. In recent years, machine learning (ML) techniques have gained significant attention in the field of breast cancer detection and diagnosis due to their ability to analyze large and complex datasets, extract meaningful patterns, and facilitate accurate classification. This research focuses on leveraging ML algorithms and models to enhance breast cancer detection and provide more reliable diagnostic results in the real world. Two datasets from Kaggle have been used in this study and Decision tree (DT), Random Forest (RF), Logistic Regression (LR), K-Nearest Classifier (KNN) etc. are applied to identify potential breast cancer cases. On the first dataset, A, the test's accuracy using Logistic Regression, SVM, and Grid SearchCV was 95.614%, however in dataset B, the accuracy of Logistic Regression and Decision Tree increased to 99.270%. The accuracy of Boosting Decision Tree was 99.270% when compared to other algorithms. To defend the performances, various ensemble models are used. To assign the optimal parameters to each classifier, a hyper-parameter tweaking method is used. The experimental study examined the findings of recent studies and discovered that LRBO performed best, with the highest level of accuracy for predicting breast cancer being 95.614%.