The purity of canned water depends on the source of the water and the treatment process adapted by the manufacturer. Canned water is expected to be free from harmful contaminants and pathogens. Drinking impure canned water can lead to several waterborne diseases such as cholera, Typhoid, Hepatitis, Cryptosporidiosis and Giardiasis. For the health of the ecosystem as a whole and the growth of plants, the chemical composition of soil is important. The chemical composition of the soil includes various parameters such as pH, nutrient content, and toxic substances. The chemical properties of soil can have an impact on plant growth and development, soil fertility, and ecosystem's overall health. Plants require a balance of essential nutrients, such as nitrogen (N), phosphorus (P), and potassium (K), to grow and develop properly. If the soil lacks these nutrients, plant growth can be stunted or even completely inhibited. In this paper, we propose a model that uses the Total Dissolved Solids (TDS) sensor and NPK (Nitrogen, Phosphorus, and Potassium) sensor to measure the quality of drinking water and the chemical composition of the soil. Temperature and moisture sensors are used to measure the temperature and moisture level for automatic irrigation.