---
title: "readAttributePirUnoccupiedToOccupiedThreshold(completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteroccupancysensing/readattributepirunoccupiedtooccupiedthreshold(completionhandler:)"
---

# readAttributePirUnoccupiedToOccupiedThreshold(completionHandler:)

## Declaration

```swift
func readAttributePirUnoccupiedToOccupiedThreshold(completionHandler: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributePirUnoccupiedToOccupiedThreshold() async throws -> NSNumber
```
