---
title: "subscribeAttributePIRUnoccupiedToOccupiedThreshold(with:subscriptionEstablished:reportHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteroccupancysensing/subscribeattributepirunoccupiedtooccupiedthreshold(with:subscriptionestablished:reporthandler:)"
---

# subscribeAttributePIRUnoccupiedToOccupiedThreshold(with:subscriptionEstablished:reportHandler:)

## Declaration

```swift
func subscribeAttributePIRUnoccupiedToOccupiedThreshold(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
```
