Both of those understadings are wrong.
If it is a hall effect sensor, one wire must be to the 12V power, and the other is the signal out.
If it is a coil, it is truly putting out AC , and , to duplicate the original signal exactly, you would need an isolated, bipolar supply. But, based on...