High cost, long-range communication, and anomaly detection issues are associated with IoT systems in water quality monitoring. Therefore, this work proposes a prototype for a water quality monitoring system (IoT-WQMS) based on IoT technologies, which include in the system architecture a LoRa repeater and an anomaly detection algorithm. The system performs the data collection, data storage, anomaly detection, and alarm sending remotely and in real-time for the information to be captured by the multisensor node. The LoRa repeater allowed the spatial coverage of the LoRa communication to extend, making it possible to reach a place where originally there was no coverage with a single LoRa transmitter due to topography and line of sight. The prototype performed well in terms of packet loss rate, transmission time, and sensitivity, extending the long-range wireless communication distance. Indoor multinode testing validation for 29 days of the mean absolute error for average relative errors of water temperature, pH, turbidity, and total dissolved solids (TDS) were 0.65%, 0.30%, and 14.33%, respectively. The anomaly detector identified all erroneous data events due to node sensor recalibration and water recirculation pump failures. The IoT-WQMS increased the reliability of monitoring through the timely identification of any sensor malfunctions and extended the LoRa signal range, which are relevant features in the scope of in situ and real-time water quality monitoring.