Temp sensor and Alternate power source

I haven't hurt any of the components, I hooked up the sensor directly to the Due and they both work properly but when I power from the buck converter it freezes the code but the LED power light on the TMP117 lights up wether it is directly connected or connected to the alternate power source.

I will upload a wiring diagram.