I've tried hot glue gun. My snakes end up dislocating it anyway. They like their hot hides too much. Most of the time I end up wedging the thermometer probe between the botton of the warm hide and the bottom of the tank. It usually works, but I wish I could find a better solution.