# 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.


---

# 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://sharinghub-eng.kittenbot.hk/educational-kit-sets/micro-bit-inventor-education-kit/micro-bit-inventor-kit-iot-upgrade/iot-gate.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.
