---
title: "Ambient light sensor"
canonical_url: https://developer.repebble.com/pebbleos/docs/drivers/als/
last_updated: 2026-11-24
sdk_version: 4.44
---
# Ambient light sensor

Source: https://developer.repebble.com/pebbleos/docs/drivers/als/

An ambient light sensor reads raw counts, which a calibrated instance converts to lux. Consumers prime it before they read, and code that would disturb a reading, such as the backlight, suspends it.

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`drivers/als`

 |
| 

Header

 | 

`pbl/drivers/als.h`

 |
| 

Kconfig

 | 

`CONFIG_ALS`, enabled by the application

 |
| 

Role

 | 

`ALS`

 |
| 

Sample

 | 

[Ambient light: Lux readings](https://developer.repebble.com/pebbleos/docs/samples/drivers/als.md)

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/d8/d59/group __drivers__ als.html)

 |

## Drivers

| 

Driver

 | 

Compatible

 | 

Kconfig

 |
| --- | --- | --- |
| 

TI OPT3001

 | 

`ti,opt3001`

 | 

`CONFIG_ALS_OPT3001`

 |
| 

Sensortek W1160

 | 

`sensortek,w1160`

 | 

`CONFIG_ALS_W1160`

 |
| 

Simulator

 | 

—

 | 

`CONFIG_ALS_SIM`

 |

Generated from PebbleOS [12b6c531f](https://github.com/coredevices/pebbleos/commit/12b6c531f9e0c2f39fe4e9bb2886314697128f08). This page is maintained in the pebbleos repository: [docs/drivers/als.md](https://github.com/coredevices/pebbleos/blob/12b6c531f9e0c2f39fe4e9bb2886314697128f08/docs/drivers/als.md).
