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