No need to wait for a process failure to replace a sensor.
With the implementation of the IO-Link technology, the devices are always being monitored to know the state of their health with Event Data.
Depending on the device, you can track if they are suffering excessive temperature, pressure, if they are out of range, internal default, etc.