40 gal tank is too big and bare for him. It's hard to tell in the picture but his hides look too big as well and they need to be matching. Hides should be tight and snug like a turtle shell hugging all their sides. It looks like the black flat one is a reptile basic hide box? Those are great but I think you need to go a size or two down.
You would be better putting him in a smaller, more appropriate sized tub but if you stick with this tank you need way more coverage and foliage and more clutter. I'm willing to guess the reason he's not eating is because he lacks the security he needs.
The hatchling 101 sticky basically covers everything you'll need to adjust.
Lastly, is that a stick on humidity gauge on the left? If so consider replacing it with something more accurate such as a digital one, as those gauge types tend to be wildly unreliable.