# Contactless Infra Red Temperature Sensor

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

This is a contactless infra red temperature sensor, it can detect temperature.

### Specification

* Voltage: 3.3V\~5V
* Sensor: MRT-311
* Working Temperature: -30°C\~100°C
* Sensitive Area: 0.35x0.35mm

### Wiring Diagram

Connect the temperature sensor to the i2c port.

![](https://kittenbothk.readthedocs.io/en/latest/_images/infraCon.jpg)

### MakeCode Coding Tutorial

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

#### Search Powerbrick in extensions. (Powerbrick is verified by Microsoft)

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/robotbit_search.gif" alt=""><figcaption></figcaption></figure>

[Importing Extensions Tutorial](/programming-platforms/makecode-tutorial/kittenbot-and-makecode.md)

#### Temperature sensor blocks:

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

#### Temperature sensor coding

**Detecting the temperature.**

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

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

**Controlling the LED.**

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

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

### Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[Makecode Extension Update](https://kittenbothk-eng.readthedocs.io/en/latest/Makecode/makecode_extensionUpdate.html)


---

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