# Sugar Cam Tutorial: QR Code Scanner

Sugar Cam can scan QR codes.

### MakeCode Programming Tutorial

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

#### Import Sugar Extension

#### Search for sugar in the search bar (Kittenbot products has been verified by Microsoft)

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

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

#### Extension URL

Sugar extension: <https://github.com/KittenBot/pxt-sugar>

### QR Code Scanner Sample Program

```
As there is no screen on the camera, you may need to try a couple
times to get a good focus and distance.
```

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

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


---

# 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/sugar/cam/commandprocessing/qr.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.
