<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRReader/devices",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "s:9SensorKit8SRReaderC7devicesSaySo8SRDeviceCGvp"
  },
  "title" : "devices"
}
-->

# devices

Returns device information for all devices that have stored data for
the given sensor in SensorKit

```
final var devices: [SRDevice] { get async throws }
```

## Return Value

An array of `SRDevice` objects representing available sensor devices

## Discussion> Throws: An error if the request failed

## Example

```swift
do {
    let devices = try await reader.devices
    for device in devices {
        print("Device: \(device.name), Model: \(device.model)")
    }
} catch {
    print("Failed to fetch devices: \(error)")
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)