Looks good. I would also put a sleep statement in at the end of the loop so that the loop is only executed once every 5-10 seconds or so. This will slow things down a bit and prevent any oscillations. It will also act as a bit of a noise filter on the temperature signal.
Simon
|