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

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