Calorific flow sensor for liquids and gases