COVID-19, which is also known as coronavirus disease, causes a situation of emergency in all over the world from March 2020, and every country was under lockdown to control its rigorous spread. While other people are self-conscious about their looks, they hide their emotions from the public by hiding their faces. Scientists proved that wearing face masks works on impeding COVID-19 transmission [1]. Since the outbreak, the WHO suggested some measures to control the spread, and the governance bodies all over the world are adopting measures suggested by the WHO. The essential precautions that the World Health Organization suggested are to maintain personal hygiene and social distancing and to wear a face mask in public places. Wearing a mask in public areas is one of the most effective methods, and it actually reduces the growth rate of COVID-19 by 40%. However, wearing a mask for a very long time could be exhausting and frustrating, and this is the main reason that people do not follow it [2]. The lawmakers and the governments worldwide are facing a lot of difficulties in controlling the spread of this deadly virus [3]. To ensure that this protocol is followed, an IoT system is proposed, which will ensure a correct way to wear a face mask and thus can result in a controlled situation when it comes to the spread of the coronavirus pandemic.The coronavirus epidemic has given rise to an extraordinary degree of worldwide scientific cooperation. Artificial intelligence (AI) based on machine learning and deep learning can help to fight COVID-19 in many ways [4]. The advancements in the area of machine learning and data analysis have allowed various researchers and