Keep the thermoSTAT probe outside the enclosure. Keep the thermoMETER probe inside the enclosure
The reason for keeping it outside is if the snake pees on it or knocks it off somehow, it will cause the thermostat to think the UTH isn't getting hot enough and it will start over heating. If it is on the outside, there is no risk of it getting knocked off and causing a temp spike.