Yep. Whereas it's great that you took that little guy in, the enclosure needs work.

A 20long would be a much better tank. Height not only isn't needed but makes the temperatures harder to stabilize.
Unless that snake is full grown, and it doesn't look like it in those pictures, a 40 or 50gal tank would be too big and stress them out.
UTHs can get up to 120 if not controlled, so you need a thermostat.
You should have a digital thermometer to monitor the temps.
Two identical fully enclosing hides would be much better.

We aren't criticizing you, just trying to help.