restored sensor checking for pathological case