An Arduino based water meter