# LightSensor

LightSensor is a non-visible component that measures the ambient light level (illumination) in lx.

**Event-handler block.** Event is triggered when a sensor change occurred

![](/files/-LGrKQJzE7fBgLWMDkOF)

**Properties block.**

LightSensor includes following properties-blocks. They allow you to determine if user's device has this type of sensor or enable / disable this sensor.

![](/files/-LGrM2ukCBZoWUqmO3Ft) ![](/files/-LGrNTcuQg7HuM3n9tUg)

Example

In Screen initialize , you can check if LightSensor is available or not. You can use block LightSensor.LightChanged to determine the sensitivity of light changed in lx unit:

![](/files/-LGuYPwFlmv1CDkLfIXp)

![](/files/-LGuQZSUuxtyKaQGfsTD)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.appybuilder.com/components/reference/sensors/lightsensor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
