Text this: Self-Diagnostic Method for Resistive Displacement Sensors