### Example Usage Source: https://github.com/stanfordspezi/spezisensorkit/blob/main/README.md Demonstrates how to fetch heart rate data using SpeziSensorKit. ```swift import SpeziSensorKit let sensor = Sensor.heartRate let devices = try await sensor.fetchDevices() for device in devices { let results = try await sensor.fetch(from: device, mostRecentAvailable: .days(2)) for sample in results { print(sample.timestamp, sample.value, sample.confidence) } } ``` -------------------------------- ### Fetching Data: Anchored Queries Source: https://github.com/stanfordspezi/spezisensorkit/blob/main/Sources/SpeziSensorKit/SpeziSensorKit.docc/SpeziSensorKit.md Example of implementing continuous SensorKit data fetching using the Anchored Fetching API. ```swift import SpeziSensorKit for try await batch in try await sensorKit.fetchAnchored(.ecg) { // do smth with a batch of ` } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.