Heavy rains result in significant threats to human health and life. Floods and other natural disasters, which have a global impact annually, can be attributed to extended periods of intense precipitation. Accurate rainfall prediction is crucial in nations such as Bangladesh, where agriculture is the predominant field of occupation. The efficiency of machine learning methods is enhanced by the nonlinearity of rainfall, surpassing the effectiveness of other approaches. This study proposes the novel combination of rainfall occurrence prediction, rainfall amount prediction, and daily average temperature prediction. This research implements machine learning techniques and an ensemble-based classifier to predict rainfall occurrence, as well as machine learning regressor models and an ensemble-based regressor to predict the rainfall amount and daily average temperature, using the Bangladesh Weather Dataset. The ensemble classifier demonstrated an accuracy of 83.41% and a recall of 78.17%, exhibiting the best performance in predicting when it will rain, but its precision was the lowest, at 51.16%. The ensemble regression model outperformed the base models, including linear regression, random forest, and support vector regression in rainfall amount prediction, with the lowest mean absolute error of 0.36 and root mean squared error of 0.90. Additionally, this model provided the most precise daily average temperature prediction results with the lowest mean absolute error of 0.42 and root mean squared error of 0.54, highlighting its superiority over the other regression models in forecasting temperature. Ensemble approaches consistently exhibit superior task performance metrics.