Displacement measurement using LVDT