> 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/micro-bit-inventor-education-kit/micro-bit-inventor-kit-koi-2-upgrade/mask-detector-gate.md).

# Mask Detector Gate

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

### Building Instructions

[Building Instructions Download](https://drive.google.com/drive/folders/1vPB1nm2KgCbI8fHl_VWVD3YiAxTgYQWc?usp=sharing)

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

### Sample Program

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

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

### Model Instructions

Press Button A to detect face.

The gate opens if the person detected is wearing mask.

The red light warning is activated if the person detected is not wearing a mask.
