The Internet of Things (IoT) is a broad term that refers to the collection of information about all of the items that are linked to the Internet. It supervises and controls the functions from a distance, without the need for human interaction. It has the ability to react to the environment either immediately or via its previous experiences. In a similar vein, robots may learn from their experiences in the environment that is relevant to their applications and respond appropriately without the need for human interaction. A greater number of sensors are being distributed across the environment in order to collect and evaluate the essential information. They are gaining ground in a variety of industries, ranging from the industrial environment to the smart home. Sensors are assisting in the monitoring and collection of data from all of the real-time devices that are reliant on all of the different types of fundamental necessities to the most advanced settings available. This research study was primarily concerned with increasing the efficiency of the sensing and network layers of the Internet of Things to increase cyber security. Due to the fact that sensors are resource-constrained devices, it is vital to provide a method for reacting, analysing, and transmitting data collected from the sensors to the base station as efficient as possible. Resource requirements, such as energy, computational power, and storage, vary depending on the kind of sensing devices and communication technologies that are utilised to link real-world objects together. Sensor networks' physical and media access control layers, as well as their applications in diverse geographical and temporal domains, are distinct from one another. Transmission coverage range, energy consumption, and communication technologies differ depending on the application requirements, ranging from low constraints to high resource enrich gadgets. This has a direct impact on the performance of the massive Internet of Things environment, as well as the overall network lifetime of the environment. Identifying and communicating matching items in a massively dispersed Internet of Things environment is critical in terms of spatial identification and communication.