Blockchain and IoT for smart management of plumbing and heating networks