 The Internet of Things IoT faces several challenges related to privacy and security. These include improper device updates, lack of effective security protocols, user unawareness, and popular active device monitoring. To address these challenges, we propose a new IoT layered model consisting of three distinct layers, cloud, edge, and IoT. This model is implemented using the Amazon Web Services, AWS, Cloud Platform, and a Raspberry Pi 4 hardware kit with support of the Greengrass Edge environment in AWS. Security protocols and critical management sessions are established between each layer to protect user data. Additionally, the model utilizes security certificates to facilitate data transfer between the layers. Furthermore, the model incorporates the best security practices to counteract potential cybersecurity threats. This article was authored by Lowe AI Tawalba, Fadi Muhidat, Maze Tawalba, and others.