Multipurpose Sensor status as enabler of routine or app

You can definitely do it, but it’s not part of the official features. See the following FAQ (this is a clickable link)