Two piece magnetic hall effect variable gap sensor