[3/Love-o-meter] it seems TMP36 doesn't work (volts: 0.00 ; degrees: -50.00)

Hi there

I've played with this sample and the tmp36 sensor. No problem so far , it was quite straightforward.

Only concern is that sensor output is not really stable, i get this serial output:
sensor Value: 146, Volts: 0.71, degrees C: 21.29
sensor Value: 144, Volts: 0.70, degrees C: 20.31
sensor Value: 145, Volts: 0.71, degrees C: 20.80
sensor Value: 144, Volts: 0.70, degrees C: 20.31
sensor Value: 144, Volts: 0.70, degrees C: 20.31
sensor Value: 147, Volts: 0.72, degrees C: 21.78
sensor Value: 144, Volts: 0.70, degrees C: 20.31
sensor Value: 146, Volts: 0.71, degrees C: 21.29
sensor Value: 144, Volts: 0.70, degrees C: 20.31

So my questions are:

  • is it normal, and is it the correct behaviour of this sensor?
  • if I want to improve the accuracy, should i change the sensor, the wiring, or focus on the software, with maybe a moving mean?

I've already faced this kind of analogic issue, with a capacitive sensor, and i used a moving mean. It was not really suitable for my purpose because it was for an input device, so adding latency with the computation of the mean was not good.

I'm interested in any suggestion, and quite a newb in electronics.
Thanks for reading

Nico