I have values of the current consumption of the motor from a system that automatically opens and closes a door. The measurements are carried out on average every 3 months, with all opening and closing operations within one day being recorded for each recording period. If the standard deviation is formed from the measured values of one day, it is possible to derive statistical values from this to determine the condition of the system (very roughly expressed).

I would now like to forecast the future behaviour or rather the future condition based on already existing, asset-specific data, which I have roughly had since 2008. Hence my question: Is it possible to calculate such forecasts relatively easily in R, or can someone perhaps give me a tip on how I can implement this task in R. For a better visualization, here is a figure showing how the individual values of the standard deviation behave.

Each improvement represents a maintenance carried out. A linear course between 2 maintenance operations can be assumed. My goal would be to predict the future course of the standard deviation in order to determine the time of the next necessary maintenance.