# IoT Fire Alarm

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

### Building Instructions

Download Instructions

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

### Sample Program(MakerCloud)

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

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

### MakerCloud Set Up

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

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

### Model Instructions

1. Fill in WiFi and MakerCloud credentials.
2. When fire is detected(can be simulated with a torch), the device will sound the alarm and publish the warning to the platform.

### Sample Program(ObjectBlocks)

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

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

### ObjectBlocks Set Up

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

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

### Model Instructions

1. Fill in WiFi and MakerCloud credentials.
2. When fire is detected(can be simulated with a torch), the device will sound the alarm and publish the warning to the platform.


---

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