Industrialization and urbanization both lead to pollution of the environment, particularly of the water. Industrialization and urbanization-related pollution have detrimental consequences both for the environment and for life on Earth. Food poisoning, diarrhea, short-term gastrointestinal problems, respiratory illnesses, skin conditions, and other major health problems can all result from this contaminated water. Most of the waste generated from garment factories is dumped into the closest rivers or canals in a developing nation such as Bangladesh, where the ready-made garment sector is one of the key contributors to the overall gross domestic product (GDP). The quality of water in these bodies has deteriorated to the point that it is no longer suitable for supporting life, making it one of the biggest hazards to both the environment and public health. Furthermore, water pollution in Bangladesh causes a daily decline in the number of fish in Bangladesh's rivers and canals. We must therefore keep an eye on the water quality and identify the causes of pollution if we want to conserve fish, other aquatic life, and the ecosystem. To reduce water pollution, real-time monitoring of water quality is essential. Most methods to reduce water pollution are primarily biological and laboratory-based and require a significant amount of time and resources. To solve this issue, we developed a real-time, three-level water quality monitoring system that is based on the Internet of Things (IoT) and integrated with mobile applications. The system suggested in this study collects data from three layers of wastewater and measures some of the most significant indicators of water, including temperature, turbidity, total dissolved solids (TDS) and hydrogen potential (pH). The outcomes of the proposed system will significantly improve the health living organisms on Earth by reusing wastewater and preserving the environment.