code for i2c digital flowmeter