A smart shirt that measures lung function by sensing movements in the chest and abdomen has proved to be accurate when compared to traditional testing equipment, according to new research.