I've been messing with the TMP36 temperature sensor. I wired it wrong and connected Vin to GND and viceversa.
Ok, before you ask how has this happened, let me explain: this happened because, instead of connecting it as in the book's picture, I decided to read the datasheet to make sure. Turns out that whoever did this document is an optical illusions enthusiast. From the datasheet:
My package was the third one, I just saw PIN1=Vs, PIN2=Vout, PIN3=GND without noticing that, unlike the other two packages, the sensor is depicted from below.
So I wired Vs to GND and GND to +5V by mistake. It smelled like something was burning, so I switched the circuit off. After re-reading specs to double-check the input voltage range [2.7V, 5.5V], tried again, even tried with 3.3 V, again with 5V plus series resistors, etc. In this case, it didn't burn because the voltage was about -1V in the sensor. In the end I connected it again to raw -5V, toasted it for a few seconds before I switched the whole thing off.
Finally I connected it the correct way. Looks like the readings are ok for room temperature. I'm no expert, but my gut tells me I should just trash it. My question is, this thing is made of a few transistors and resistors (page 8 of the datasheet, linked above). Do they actually get damaged when connected to negative voltages?