This article provides an overview of different intrusion and cyber-attack detection techniques in an IoT network, along with a description of different datasets used for analysis. It also discusses the use of machine learning algorithms and strategies to overcome imbalanced datasets. The paper presents a new technique that utilizes deep neural networks and principal component analysis for improved accuracy and reduced complexity in intrusion detection.