Breathing LED controlled by temperature sensor (NEED HELP!!)

kovil:

[quote author=Runaway Pancake link=topic=232878.msg1679571#msg1679571 date=1397481446]

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".

And that's what I've been saying the whole time: ' the transitions from one to the next weren't "graceful" '
It does work, but not well.
[/quote]

Horsefeathers!
You posted that you were getting "random" flashing, "not working", "doesn't work" and that like.
Maybe I'm having an aneurysm. Does anybody else smell burning toast?
So your beef all along has been the transitions?

My "guess" would be to structure the equation so that any new value of x is incorporated when the output is:
a) at max
OR
b) at min.