LM335Z madness

mmoscz:
This sensor give temp in KELVIN, you need convert to celsus.

DESCRIPTION
The LM135, LM235, LM335 are precision temperature sensors which can be easily calibrated. They
operate as a 2-terminal Zener and the breakdown
voltage is directly proportional to the absolute temperature at 10mV/K

temp = analogVal / 1024.0 * 4.87; // 4.87V is what I mesured on the +5V pin as I'm getting
  temp = (temp * 100) - 273.15;     // power via the USB port.