The engine starts and runs OK? If so keep driving until fixed.
Make sure the sensor is now mounted well. Being too far off may result in the engine not not starting.
Is the cam pulley the one from the 1998?
A few thoughts on what to do?
Do you still have the old head? If you do this can help finding the right location.
Set engine at TDC on No 1 cylinder. The cam pulley should have one tooth that is used for the sensor to pickup. Find this tooth and line the sensor up with this tooth.
Fabricate a sensor mount that can be moved around until the finding the right spot. This could mean two brackets, one for sensor and one for engine. They would have enlarged holes or slots, etc to allow movement to gain the right location. Then bolted to secure.
Hardware stores have brackets, angles, flats with lots of punched holes.