> For the complete documentation index, see [llms.txt](https://ubtechedu.gitbook.io/ukit-explore/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor.md).

# Sensor

- [uKit eye lamp](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight.md): Functions Syntax
- [setEyelightAllPetals(id,red,green,blue)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightallpetals.md): Control all the 8 petals (pixels) of the eye lamp to light up a set of color.
- [setEyelightPetals(id,petalsnum,petals)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightpetals.md): Customize eye lamps, 8 petals (pixels) light up in different colors.
- [setEyelightLook(id,face,times,red,green,blue)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightlook.md): Set the emoticons to light up different color of expressions (non-blocking)
- [setEyelightLookUntil(id,face,times,red,green,blue)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightlookuntil.md): 设置眼灯亮不同颜色的表情（阻塞）
- [setEyelightScene(id,scene,times);](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightscene.md): Set the eye lamp to the different scene mode (non-blocking)
- [setEyelightSceneUntil(id,scene,times)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightsceneuntil.md): Set the eye lamp to the different scene mode (blocking).
- [setEyelightOff(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/eyelight/seteyelightoff.md): Turn off the eye lamp
- [uKit Ultrasonic Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/ultrasonic.md): Functions Syntax
- [setUltrasonicRgbled(id,red,green,blue)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/ultrasonic/setultrasonicrgbled.md): Control the ultrasonic sensor’s LED to light up and set the color
- [setUltrasonicRgbledOff(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/ultrasonic/setultrasonicrgbledoff.md): Turn off the ultrasonic sensor’s LED light.
- [readUltrasonicDistance(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/ultrasonic/readultrasonicdistance.md): Reading ultrasonic sensor distance
- [uKit Infrared Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/infrared.md): Functions Syntax
- [readInfraredDistance(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/infrared/readinfrareddistance.md): Get infrared sensor distance value.
- [uKit Touch Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/button.md): Functions Syntax
- [readButtonValue(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/button/readbuttonvalue.md): Get the state of the touch sensor
- [uKit Light Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/light.md): Functions Syntax
- [readLightValue(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/light/readlightvalue.md): Get the light value from the light sensor.
- [uKit Sound Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/sound.md): Functions Syntax
- [readSoundValue(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/sound/readsoundvalue.md): Get the sound intensity.
- [uKit Temperature and Humidity Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/humiture.md): Functions Syntax
- [readHumitureValue(id,choice)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/humiture/readhumiturevalue.md): Get the temperature or humidity value
- [uKit Color Sensor](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/color.md): Functions Syntax
- [readColorRgb(id)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/color/readcolorrgb.md): Get the RGB value of color sensor.
- [readColor(id,color)](https://ubtechedu.gitbook.io/ukit-explore/standard/sensor/color/readcolor.md): Recognize the specific color from the color sensor


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://ubtechedu.gitbook.io/ukit-explore/standard/sensor.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.
