Uploaded March 2021 | Updated September 2026, 2 weeks ago
During this COVID-19 pandemic, it is good to wear mask and check body temperature. I wish to have a face mask detect in our retail shop. But the price for mask detector on market is expensive (cost RM3500 or USD900) so I made one within RM100 (around USD30).
With this face mask detector, our customer is needed to scan temperature and face mask before entering. The face mask detector scan the face mask on human face and open the gate automatically to allow customer enter. Otherwise, it will remind the customer wear the mask on LCD screen.
In this project, we taking the idea of the temperature scanner at the front door of every shop and premises, customer need to scan their faces before they can enter our premise. With this project, a customer without mask cannot enter our premise and only the one wearing mask can enter our premise. We share the code and schematic diagram in this video. Enjoy the video! cheers!
Source Code for ESP32-CAM:
drive.google.com/file/d/1qjkhwfXBfvWogOplF56TsatN-dc6FeRw/view?usp=sharing
Source Code for Arduino:
drive.google.com/file/d/1OJ4Jl_UHqu-1fpVZa1sCOwoJFuyxlZn1/view?usp=sharing
Components used in this project:
1. ESP32-CAM WIFI: https://www.mybotic.com.my/esp32-cam-wifi-bluetooth-development-board-with-ov2640-camera-module?search=esp32%20cam
2. Arduino UNO: https://www.mybotic.com.my/arduino-uno-rev3-compatible-china-official-version-usb-cable?search=arduino%20uno
3. E18-D80NK Adjustable IR Sensor: https://www.mybotic.com.my/adjustable-infrared-sensor-3-to-80-cm?search=adjustable
4. Tower Pro MG995 Servo Motor (180deg): https://www.mybotic.com.my/tower-pro-rc-servo-motor-mg995-180-degree?search=mg995
5. 16x2 I2C LCD: https://www.mybotic.com.my/arduino-i2c-serial-lcd-16x2-blue-backlight?search=lcd%20i2c
6. LM2596 Adjustable DC-DC Converter module: https://www.mybotic.com.my/lm2596-dc-dc-adjustable-step-down-converter-power-module?search=lm2596
7. 10mm Green LED: https://www.mybotic.com.my/led-light-emitting-diode-10mm-red-blue-yellow-green-led?search=10mm%20led
8. 10mm Red LED: https://www.mybotic.com.my/led-light-emitting-diode-10mm-red-blue-yellow-green-led?search=10mm%20led
9. CH340G USB to TTL Serial Converter: https://www.mybotic.com.my/ch340g-usb-to-ttl-uart-serial-converter-module?search=ch340
During this COVID-19 pandemic, it is good to wear mask and check body temperature. I wish to have a face mask detect in our retail shop. But the price for mask detector on market is expensive (cost RM3500 or USD900) so I made one within RM100 (around USD30).
With this face mask detector, our customer is needed to scan temperature and face mask before entering. The face mask detector scan the face mask on human face and open the gate automatically to allow customer enter. Otherwise, it will remind the customer wear the mask on LCD screen.
In this project, we taking the idea of the temperature scanner at the front door of every shop and premises, customer need to scan their faces before they can enter our premise. With this project, a customer without mask cannot enter our premise and only the one wearing mask can enter our premise. We share the code and schematic diagram in this video. Enjoy the video! cheers!
Source Code for ESP32-CAM:
drive.google.com/file/d/1qjkhwfXBfvWogOplF56TsatN-dc6FeRw/view?usp=sharing
Source Code for Arduino:
drive.google.com/file/d/1OJ4Jl_UHqu-1fpVZa1sCOwoJFuyxlZn1/view?usp=sharing
Components used in this project:
1. ESP32-CAM WIFI: https://www.mybotic.com.my/esp32-cam-wifi-bluetooth-development-board-with-ov2640-camera-module?search=esp32%20cam
2. Arduino UNO: https://www.mybotic.com.my/arduino-uno-rev3-compatible-china-official-version-usb-cable?search=arduino%20uno
3. E18-D80NK Adjustable IR Sensor: https://www.mybotic.com.my/adjustable-infrared-sensor-3-to-80-cm?search=adjustable
4. Tower Pro MG995 Servo Motor (180deg): https://www.mybotic.com.my/tower-pro-rc-servo-motor-mg995-180-degree?search=mg995
5. 16x2 I2C LCD: https://www.mybotic.com.my/arduino-i2c-serial-lcd-16x2-blue-backlight?search=lcd%20i2c
6. LM2596 Adjustable DC-DC Converter module: https://www.mybotic.com.my/lm2596-dc-dc-adjustable-step-down-converter-power-module?search=lm2596
7. 10mm Green LED: https://www.mybotic.com.my/led-light-emitting-diode-10mm-red-blue-yellow-green-led?search=10mm%20led
8. 10mm Red LED: https://www.mybotic.com.my/led-light-emitting-diode-10mm-red-blue-yellow-green-led?search=10mm%20led
9. CH340G USB to TTL Serial Converter: https://www.mybotic.com.my/ch340g-usb-to-ttl-uart-serial-converter-module?search=ch340










