# 如何讀取感應器數值?

**解決方法：**&#x4F7F;用序列埠(Serial)印出。以讀取超音波感應器的數值為例，操作步驟為：

Step1.從FlipCode左方工具列找出【序列埠動作】->【序列埠印出】拼圖，與需要讀取的感應器拼圖，放到重複執行拼圖中。

![](/files/-LyiV8py5TpV1u5BygNG)

Step2.燒錄FlipCode到FlipRobot中，並按下FlipRobot上的切換鈕，以執行重複執行拼圖中的程式。

Step3.從FlipCode上方工具列點選 Serial，即可即時查看感應器回傳的數值。

![](/files/-LyiVGsm6VhyX5_826jy)


---

# 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://fliprobot.gitbook.io/knowledge-base/frequently-asked-questions/about-flipcode/ru-he-du-qu-gan-ying-qi-shu-zhi.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.
