It is threaded, and the most secure connection would be a ring terminal, a couple of washers and a nut
It appears you used a lot of sealant on the block mounting threads. The function of the sender requires a good ground Connection established through the engine block threads. Not a definite problem, but certainly could be.
Larry