Earthquakes are one of the most life-threatening natural phenomena, and their prediction is of constant concern among scientists. The study proposes that abrupt weather parameter value fluctuations may influence the occurrence of shallow seismic events by focusing on developing an innovative concept that combines historical meteorological and seismic data collection to predict potential earthquakes. A machine learning (ML) model utilizing the ML.NET framework was designed and implemented. An analysis was undertaken to identify which modeling approach, value prediction, or data classification performs better in forecasting seismic events. The model was trained on a dataset of 8766 records corresponding to the period from 1 January 2001 to 5 October 2024. The achieved accuracy of the model was 95.65% for earthquake prediction based on weather conditions in the Vrancea region, Romania. The authors proposed a unique alerting algorithm and conducted a case study that evaluates multiple predictive models, varying parameters, and methods to identify the most effective model for seismic event prediction in specific meteorological conditions. The findings demonstrate the potential of combining Internet of Things (IoT)-based environmental monitoring with AI to improve earthquake prediction accuracy and preparedness. An IoT-based application was developed using C# with ASP.NET framework to enhance earthquake prediction and public warning capabilities, leveraging Azure cloud infrastructure. The authors also created a hardware prototype for real-time earthquake alerting, integrating the M5Stack platform with ESP32 and MPU-6050 sensors for validation. The testing phase and results describe the proposed methodology and various scenarios.