I prefer to use a dimmer for my CHE instead of a thermostat. If you have to use a t-stat I guess you could let the probe dangle a few inches from the top of the enclosure if the snake can’t climb on it.
https://www.amazon.com/Flukers-Repta.../dp/B003H200QC