I don't think the grommet needs any sealant if it is sized correctly. The one for my airlock, for example, is just a friction-fit rubber piece. I suppose the question is: how big is the temperature sensor? Can you get a grommet that is the same size?
The other consideration is: Do you really need the primary bucket to be air-tight? Most of us do NOT ferment under airlock in the primary fermentation vessel, but rather just cover the bucket with a piece of cloth or just leave the lid loosely on top.
If it's going to be in the lid and not in contact with the must/wine you could use hot glue. I used hot glue to affix a vinyl drain tube on a strainer I fabricated. Works great.
Use a cork or solid stopper. Drill a hole in the cork/stopper to fit the temp probe, and then a hole in the lid slightly smaller than the cork/stopper.