With recent advancements in water-quality analytical technology and the increasing popularity of the Internet of Things (IoT), the market demand for compact and durable automated water-quality monitoring devices has grown substantially. However, the current existing online monitoring devices mostly featuring a single-light source to monitor turbidity and chemical oxygen demand (COD), two critical indicators of natural water bodies, which tend to be influenced by interfering substances that limits their ability to measure more complex water-quality parameters. To address these issues, a new modularized water-quality monitoring device equipped with multi-light sources (UV/VIS/NIR) has been designed and implemented. This device can measure the photo-intensity of scattering, transmission, as well as reference light simultaneously, and coupled with different water-quality prediction models to provide accurate estimates for tap water (Turbidity<2 NTU, relative error < 17.8%), environmental sample (Turbidity<400 NTU, relative error < 2.3%) and industrial wastewater (COD<300 mg/L, relative error < 17.6%). The study results suggest the new designed optical module can effectively monitor turbidity and COD in different water samples and provide alerts for water treatment in high concentration, thereby enabling automated water quality monitoring in future.