---
title: opticalSamples
framework: sensorkit
role: symbol
role_heading: Instance Property
path: sensorkit/srphotoplethysmogramsample/opticalsamples
---

# opticalSamples

The samples recorded by the photoplethysmogram (PPG) optical sensor.

## Declaration

```swift
var opticalSamples: [SRPhotoplethysmogramOpticalSample] { get }
```

## See Also

### Accessing PPG data

- [startDate](sensorkit/srphotoplethysmogramsample/startdate.md)
- [nanosecondsSinceStart](sensorkit/srphotoplethysmogramsample/nanosecondssincestart.md)
- [usage](sensorkit/srphotoplethysmogramsample/usage-swift.property.md)
- [SRPhotoplethysmogramSample.Usage](sensorkit/srphotoplethysmogramsample/usage-swift.struct.md)
- [SRPhotoplethysmogramOpticalSample](sensorkit/srphotoplethysmogramopticalsample.md)
- [accelerometerSamples](sensorkit/srphotoplethysmogramsample/accelerometersamples.md)
- [SRPhotoplethysmogramAccelerometerSample](sensorkit/srphotoplethysmogramaccelerometersample.md)
- [temperature](sensorkit/srphotoplethysmogramsample/temperature.md)
