Sorry for the delay in reply... Close as possible, but not touching. Depending on the sensor, it may or may not need a shim.
Your new hub most likely comes with a new sensor pre-installed. If so, there should be no compatibility issues and be a plug-n-play install.