LM335 HELP!

Hi Guys,

I have hooked up my LM335 temperature sensor to my system and I am getting some funky readings. Basically if I heat up the sensor the temperature reading I am getting in my serial port is going down.. i.e. the wrong way.. Has anyone run into this problem before?
I am certain that the code is fine because it has indeed worked in the past.. For your reference here is how I am calculating the temperature:

tempC = (((500*analogRead(tempPin))/1024)); //convert the analog input to a temperature in Celsius

Anyhelp MUCH appreciated!
Thanks!

Clarke

Problem Solved - sorry to waste your time! Turns out the LM335 is quite a bit different to LM35 in the way of wiring it up!

Cheers