Jijesh | modified the code to handle situation where there are no flowmeter readings