Over the past few decades, due to human activities, industrialization, and urbanization, air pollution has become a life-threatening factor in many countries around the world. Air pollution has a direct impact on human health through the exposure of pollutants and particulates, which has increased the interest in air pollution and its impacts among the scientific community. The main causes associated with air pollution are the burning of fossil fuels, agriculture, exhaust from factories and industries, residential heating, and natural disasters. The Environmental Protection Agency (EPA) tracks the pollution level by calculating the amount of ground-level ozone (O3), Sulphur dioxide (SO2), particulates matter (PM10 and PM2.5), carbon monoxide (CO), carbon dioxide (CO2), and nitrogen dioxide (NO2) present in the air molecule. These substances are in compositions of a common index, called the Air Quality Index (AQI), indicating how clean or polluted the air is currently or forecasted to become in areas. This work deliberates the implementation of cloud based IoT system for air quality monitoring in which the sensors are used to calculate CO, PM2.5 and PM10, O3, SO2 and NOx pollution level with environmental condition like temperature and humidity. The obtained information can be updated in cloud platform using Lora nodes and Lora Gateway. The information fetched from the cloud is transmitted to the Machine learning models which contains the detailed dataset for the pollutants and these models accurately predict the day-wise pollutant concentrations and display them using an application. This work presents the detailed analysis for predicting the cause of pollution by using Support Vector Machine (SVM), Random forest algorithm and K-nearest neighbours (KNN) algorithm.