---
title: ambientLightSensor
framework: sensorkit
role: symbol
role_heading: Type Property
path: sensorkit/srsensor/ambientlightsensor
---

# ambientLightSensor

A sensor that provides ambient light information.

## Declaration

```swift
static let ambientLightSensor: SRSensor
```

## Discussion

Discussion The sample type for this sensor is SRAmbientLightSample. You need to provide a reason to record ambient light by adding the SRSensorUsageAmbientLightSensor dictionary to the NSSensorKitUsageDetail key in the information property list.

## See Also

### Reading environment sensors

- [ambientPressure](sensorkit/srsensor/ambientpressure.md)
