using a sensor contacting the exterior surface