When well placed, this is the best way to protect the engine.
However, it depends a lot on the probe's exact placement, since it can be affected by ambient heat, the exhaust pipe, external wind, etc. For this reason it is only recommended for installation by trained people.
Note that it behaves differently from what you may be used to seeing.
If you choose this method, take care to:

-Rest the probe against the hatched area in the image.
-You can use an unused hole.
-You can loosen a screw and use a “half-omega” bracket.
-Some people drill a new hole themselves; this is risky and should only be done by someone who knows both sides of the cover (inside and outside).
-Do not remove the cylinder covers, gaskets, OR COVER SCREWS (they use a special torque setting and removing them would damage the cover).

A) Cylinder cover
B) Sensor
C) Thermal insulation
D) Unused hole
E) Half-omega bracket
F) Existing screw
A note on adhesives: an adhesive can work fine, but it's very important to keep in mind that most household adhesives melt at 100°c (212°f), and you wouldn't want the sensor to come loose exactly when you need it most.
Also keep in mind that while the adhesive is curing (hardening), the probe can shift away from the cylinder cover and lose thermal transfer.
Using adhesive does not remove the need for thermal insulation.