Stewart Russell at “We Saw a Chicken” has done a very comprehensive tutorial on using a simple analog to digital converter (ADC) via SPI to read a temperature sensor with Python. It is based on the work for the Quite Rubbish Clock featured on this blog recently.