Electric motor sensor