> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/functional_module/infratemp.md).

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