Smart plug-and-play flowmeter for utility measurement