I have found hot glue to work the best; it is water resistant, holds well, but if needed is easy to remove.
In my PVC cages, I am able to drill holes so that makes things easier as well:
Here you can see the thermometer probe cord stuck to the back of the cage with double sided foam tape
![]()