Smart plug-and-play flowmeter for utilities