This article presents an environment monitoring model for agricultural production applied to farmers in the Mekong Delta, Viet Nam. The proposed model's special feature is a system combining techniques such as IoT, agent-based, sensor networks, and data warehouses. Successfully deploying the model in monitoring the water level, and the environmental factors of the rice soil such as NPK, pH, EC, temperature, and soil moisture not only aids managers and farmers monitor environmental quality indicators in real time, but also experts to analyze data, give warnings and appropriate response solutions in agricultural production according to the pivot strategy towards Agriculture 4.0 proposed by the Minister of the Ministry of Agriculture and Rural Development of Viet Nam.