Framework for the implementation of an Internet of Things (IoT)-based water distribution and management system