---
title: ambientPressure
framework: sensorkit
role: symbol
role_heading: Type Property
path: sensorkit/srsensor/ambientpressure
---

# ambientPressure

A sensor that provides pressure and temperature metrics.

## Declaration

```swift
static let ambientPressure: SRSensor
```

## Discussion

Discussion The sample type for this sensor is [CMRecordedPressureData]. You need to provide a reason to record ambient pressure by adding the SRSensorUsageElevation dictionary to the NSSensorKitUsageDetail key in the information property list.

## See Also

### Reading environment sensors

- [ambientLightSensor](sensorkit/srsensor/ambientlightsensor.md)
