---
title: "readAttributeOccupancySensorType(with:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteroccupancysensing/readattributeoccupancysensortype(with:)"
---

# readAttributeOccupancySensorType(with:)

## Declaration

```swift
func readAttributeOccupancySensorType(with params: MTRReadParams?) -> [String : Any]?
```
