# Analog Flame Sensor

![../../\_images/fire2.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/fire2.png)

This module can detect fire, it returns an analog value.

The range of the return value is 0-1023, a higher value means the sensor is closer to fire.

### Specification[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#specification)

* Voltage: 3.3V\~5V
* Type: Analog Sensor
* Interface: 3Pin PH2.0

### Wiring Diagram[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#wiring-diagram)

```
This is an analog module, it can only use P0-P2.(Remove the buzzer jumper when P0 is in use.)
```

#### Robotbit Shield[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#robotbit-shield)

Connect the sensor to Robotbit Shield’s 3Pin port.

![../../\_images/fire\_wire2.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/fire_wire2.png)

#### Robotbit[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#robotbit)

Connect the sensor to Robotbit’s pin and 3V pin.

![../../\_images/fire\_wire1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/fire_wire1.png)

### MakeCode Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#makecode-coding-tutorial)

![../../\_images/mcbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mcbanner.png)

![../../\_images/acbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/acbanner.png)

#### This module can be used with Microbit and Meowbit.[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#this-module-can-be-used-with-microbit-and-meowbit)

**Reading the flame value**[****](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#reading-the-flame-value)

#### Microbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#microbit)

![../../\_images/poten\_code.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_code.png)

#### Meowbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#meowbit)

![../../\_images/poten\_codeMeow.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codeMeow.png)

### KittenBlock Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#kittenblock-coding-tutorial)

![../../\_images/kbbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

#### Load the Robotbit extension[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#load-the-robotbit-extension)

![../../\_images/addRB.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/addRB.png)

**Reading the flame value**[****](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#id1)

![../../\_images/poten\_codekb.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codekb.png)

### Mu Editor Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#mu-editor-coding-tutorial)

#### Reading the flame value[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/fire.html#id2)

![../../\_images/poten\_codemu.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codemu.png)


---

# 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/functional_module/discontinued-modules/analog-flame-sensor.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.
