Bubble tube and density measurement