Ordered a replacement speed sensor. New one has three wires and old one connects to only two?

Is this the correct part? Or does anyone know how to wires this up?

Thanks in advance!