> For the complete documentation index, see [llms.txt](https://sharinghub-eng.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-eng.kittenbot.hk/educational-kit-sets/micro-bit-inventor-education-kit/micro-bit-inventor-kit-iot-upgrade/iot-gate.md).

# IoT Gate

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

### Building Instructions

[Download Instructions](https://kittenbothk.readthedocs.io/en/latest/Kits/classroom_inventor/iot_instructions/images/gate.pdf)

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

### Sample Program(MakerCloud)

{% embed url="<https://github.com/kittenbothk/kittenbothk/raw/master/Kits/classroom_inventor/iot_instructions/images/gate.pdf>" %}

[Sample Program](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/classroom_inventor/iot_instructions/images/gate.pdf)

### MakerCloud Set Up&#x20;

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

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

### Model Instructions

1. Fill in WiFi and MakerCloud credentials.
2. The gate opens when a person walks near it.
3. The number of people passing through the gate is updated automatically.

### Sample Program (ObjectBlocks)

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

[Sample Program](https://makecode.microbit.org/_Jd2gqadbAdC5)

### ObjectBlocks Set Up

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

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

### Model Instructions

1. Fill in WiFi and MakerCloud credentials.
2. The gate opens when a person walks near it.
3. The number of people passing through the gate is updated automatically.
