Working with time-series (in R) and needing to find the first moment when a certain value starts to appear: I have to find the time in which two variables become stable. I will use temperature in this example because I think it is better understood:
I have a variable A and a variable B (temperature at point A and B). They become heated at a specific moment. After it, the temperature will slowly drop until the difference is the same (i.e., 0). But because of some external issues, the difference among these (I called it "C") does not always reach 0- sometimes becomes stabilized at other levels, or the stabilization is not perfect. However, I must find the times in which these get stable. Showing the first time a "0" appears may be wrong. I thought of using the statistical mode for low values and retrieve the first one to appear (i.e. the first moment in the time series the mode shows up). Do you think it's a good idea? Is there any package to do this?
I wish to know if there is a way I can easily spot where both temperatures get stabilized. This graph is only one example but I should repeat it for many data (i.e. other similar time-series). At the same time, I think I could smooth the graph by using an average-mean or a moving-mean, let me know if you have an opinion about it too. Thank you very much. :)

