Most likely you have an incorrect head.
Look down the threaded hole for the sending unit. You should see a machined "flat" that the unit would be pressed against when installed. If what you is a straight hole with threads, well, wrong head.
It would help to know what year you are working on and even more importantly, what year is the engine?