# Mask Detector

Many premises require visitors to wear a mask, this model simulates a gate where only people who are wearing a mask are allowed entry.

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

### Building Instructions

[Building Instructions Resource Pack Download](https://bit.ly/AIHealthCareSetBuildingGuide)

### Sample Wiring

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

### Sample Program

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

[Mask Detector](https://makecode.microbit.org/_P6WfVTHJ0Eo6)

### Model Instructions

1. Switch on the power and wait 10 seconds for the KOI to power on completely.
2. Press Button A to detect mask, the gate will open if the person is wearing a mask.


---

# 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/educational-kit-sets/health-care-educational-ai-kit/health-care-educational-ai-kit-instructions-koi-2/mask-detector.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.
