An Effective Method of Sensor Data Transmissions in a Water-Quality Monitoring System