This "backyard" repair would not only eventually fail, it would look terrible and let everyone who sees it know that OP does not care about or respect the intended design and operation of the system.use a hose clamp to secure a ground wire the the hex of the sensor, run the other end to a bolt.
So many times I come across items that are improperly repaired that it begins to make things unsafe. Is it really that difficult repairing items to meet factory specifications people on this forum need to offer advice on "workaround" repairs?