Smart pipe: A miniaturized sensor platform for real-time monitoring of drinking water quality