Encoder and potentiometer to detect fault measurement