Silicon temperature sensors consist of an on-chip diode-generated voltage, filtering, and an ADC. Many times the initial problems that occur in communicating with temperature sensors has to do with improper timing of clock and data lines. The easiest thing to do eliminate digital communication as a culprit for improper timing is to take a scope photo of the I2C or SPI event. This makes it very easy to see if there are marginal clock edges and/or spurious noise that could be interpreted as an erroneous "start" or "stop" condition by the slave device.