<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSensor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:@T@SRSensor"
  },
  "title" : "SRSensor"
}
-->

# SRSensor

The sensors an app can read.

```
struct SRSensor
```

## Discussion

Use the properties in this structure to access the different sensors.

## Topics

### Reading device sensors

[`SRSensorDeviceUsageReport`](/documentation/SensorKit/SRSensor/deviceUsageReport)

A sensor that provides information about device usage.

[`SRSensorKeyboardMetrics`](/documentation/SensorKit/SRSensor/keyboardMetrics)

A sensor that provides information about keyboard usage.

[`SRSensorOnWristState`](/documentation/SensorKit/SRSensor/onWristState)

A sensor that describes the watch’s position on the wrist.

### Reading app activity sensors

[`SRSensorMessagesUsageReport`](/documentation/SensorKit/SRSensor/messagesUsageReport)

A sensor that provides information about use of the Messages app.

[`SRSensorPhoneUsageReport`](/documentation/SensorKit/SRSensor/phoneUsageReport)

A sensor that reports the amount of time that the user is on phone calls.

### Reading user activity sensors

[`SRSensorAccelerometer`](/documentation/SensorKit/SRSensor/accelerometer)

A sensor that provides acceleration motion data.

[`SRSensorFaceMetrics`](/documentation/SensorKit/SRSensor/faceMetrics)

A sensor that provides data describing a user’s face.

[`SRSensorHeartRate`](/documentation/SensorKit/SRSensor/heartRate)

A sensor that provides the user’s heart rate data.

[`SRSensorMediaEvents`](/documentation/SensorKit/SRSensor/mediaEvents)

A sensor that provides information about interactions with media, such as images and videos, in messaging apps.

[`SRSensorOdometer`](/documentation/SensorKit/SRSensor/odometer)

A sensor that provides information about speed and slope.

[`SRSensorPedometerData`](/documentation/SensorKit/SRSensor/pedometerData)

A sensor that provides information about the user’s steps.

[`SRSensorRotationRate`](/documentation/SensorKit/SRSensor/rotationRate)

A sensor that provides rotation motion data.

[`SRSensorSiriSpeechMetrics`](/documentation/SensorKit/SRSensor/siriSpeechMetrics)

A sensor that provides data describing a user’s speech to Siri.

[`SRSensorTelephonySpeechMetrics`](/documentation/SensorKit/SRSensor/telephonySpeechMetrics)

A sensor that provides data describing speech during phone calls.

[`SRSensorVisits`](/documentation/SensorKit/SRSensor/visits)

A sensor that provides information about frequently visited locations.

[`SRSensorWristTemperature`](/documentation/SensorKit/SRSensor/wristTemperature)

A sensor that provides wrist temperature while the user sleeps.

[`SRSensorPhotoplethysmogram`](/documentation/SensorKit/SRSensor/photoplethysmogram)

A sensor that streams sample PPG sensor data.

[`SRSensorElectrocardiogram`](/documentation/SensorKit/SRSensor/electrocardiogram)

A sensor that streams sample ECG sensor data.

### Reading environment sensors

[`SRSensorAmbientLightSensor`](/documentation/SensorKit/SRSensor/ambientLightSensor)

A sensor that provides ambient light information.

[`SRSensorAmbientPressure`](/documentation/SensorKit/SRSensor/ambientPressure)

A sensor that provides pressure and temperature metrics.

### Creating a sensor

[`init(rawValue:)`](/documentation/SensorKit/SRSensor/init(rawValue:))

Creates a sensor from a raw value.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)