A script to check sensor last update

It matters, you need to adjust conditions in the script… name and-or class (device type)