Hot glue the cord in place and also put a drop of hot glue on the tip of the probe. Just don't cover it with glue as it will insulate the probe and throw off your readings.