I've been learning Arduino and playing with the TMP36 sensor, trying to read temperature of my room. To do that I've assembled a super-easy scheme just to read the values to Serial monitor, something very similar to the following pic.
The problem is that silly me inserted the sensor facing the wrong way (not how it is depicted in the picture above but the other way around) and the temperature of the sensor went to 200+C. The actual component temperature also spiked since and I actually burnt my fingers when I touched it. I'm struggling to understand why this happened. Now obviously the problem is caused by the fact that power went through the pin that was supposed to be ground, however why did the temperature spike? Does this have something to do with the internal structure of the TMP36 sensor or is it something fundamental to this process that I don't understand?