> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/functional_modules/pwmodules/soilmoisture.md).

# 泥土濕度魔塊

![](https://kittenbothk.readthedocs.io/en/latest/_images/032.png)

這是一塊泥土濕度魔塊，它可以測量泥土的濕度，泥土越乾燥數值越大。

![](https://kittenbothk.readthedocs.io/en/latest/_images/IMG_2580.GIF)

![](https://kittenbothk.readthedocs.io/en/latest/_images/IMG_2579.GIF)

### 使用注意事項：

* 若長期不使用魔塊，請妥善放置乾燥地方保管，防止潮濕被氧化。
* 魔塊上有最大限位線，請勿過度插入泥土或者水中，避免損壞電路。

### 接線方法

將溫度濕度魔塊用4pin排線連接至Armourbit，然後用3pin排線將魔塊連接至溫度濕度魔塊。

![](https://kittenbothk.readthedocs.io/en/latest/_images/soil_wire.png)

### MakeCode編程教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/mcbanner13.png)

#### 加載PowerBrick插件：

#### 在擴展頁直接搜尋powerbrick (PowerBrick已經過微軟認證，可以直接搜尋)

![](https://kittenbothk.readthedocs.io/en/latest/_images/powerbrick_search.png)

#### 你亦可以用插件地址搜尋

PowerBrick插件地址：<https://github.com/KittenBot/pxt-powerbrick>

#### [詳細方法](/programmingplatforms/makecode/kittenbotandmakecode.md)

#### 泥土濕度魔塊積木塊:

![](https://kittenbothk.readthedocs.io/en/latest/_images/environmentblocks.png)

#### 泥土濕度探測編程

{% embed url="<https://makecode.microbit.org/_i33W9gCyueDr>" %}

[參考程式網址](https://makecode.microbit.org/_i33W9gCyueDr)

#### Makecode教學短片

{% embed url="<https://www.youtube.com/watch?v=ilXSpFd86DQ>" %}

#### 示範短片

{% embed url="<https://www.youtube.com/watch?v=M4zZKMOT2u4>" %}

### 插件版本與更新

插件可能會不定時推出更新，改進功能。亦有時候我們可能需要轉用舊版插件才可使用某些功能。

詳情請參考: [Makecode插件版本更換](/programmingplatforms/makecode/makecodeextupdate.md)

### KittenBlock編程教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbbanner7.png)

#### 加載PowerBrick插件

在左上角小貓logo旁邊的硬件欄選擇PowerBrick，加載Microbit與Powerbrick插件。

![](https://kittenbothk.readthedocs.io/en/latest/_images/addextension1.png)

#### 環境積木塊

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbenvblocks.png)

#### 泥土濕度探測

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbsoil.png)

[參考程式下載](https://bit.ly/PowerbrickM3-01sb3)

### FAQ

1：為什麼我點擊積木塊沒有反應呢？

首先確保已經連接好Microbit，然後上載韌體再試一試。
