New sensor can prevent defects in major structures reaching costly and dangerous levels