This document reviews heterogeneous and homogeneous wireless sensor networks (WSNs) and techniques for intrusion detection systems (IDS). It discusses various routing protocols, security threats, and the advantages and disadvantages of existing IDS methods within WSNs, emphasizing the need for efficient systems in heterogeneous networks. The paper also explores different attack detection strategies and provides a comparative analysis of single sensing versus multi-sensing approaches.