kovil:
I changed it to A0, same flashing result
So you do have the "temperature sensor" connected to Analog In pin A0 (not Digital pin 0) -- right ?
And when I posted that I got some wonky results, that was only when it changed val, the transitions from one to the next weren't "graceful".