Basically, like many others, I want it to only insert fuel if steam is under a certain number and to only insert one fuel cell.
However, unlike other options I've seen for this, I also want them to insert a second fuel cell, if after 100s (or maybe more) the steam tanks still haven't recovered.
What I came up with works for this except for one issue, the clock/counter I have remembers its count if the on signal turns off. So if it was at tick 5000 and the steam is good, it'll be at 5000 when the steam is no longer good.
I tried a bunch of different things to try and reset the issue, but couldn't come up with a good solution. I suppose I could maybe wire the clock into the SR to do a reset there.
Basically, this is just a SR up top (the arithmetic simply divides by 1k to make the numbers more manageable), clock is in the middle, with a pulse generator on the lower left. I more or less sourced these from the Combinator 101 thread and have tweaked them a bit as needed.