Wireless Sensor Networks (WSNs) have found numerous applications in fields like environment monitoring, healthcare systems, smart cities, and industrial automation. However, WSNs are susceptible to many kinds of cyber security attacks such as denial-of-service attacks, sinkhole attacks, wormhole attacks and selective forwarding attack because of their distributed architecture, limited computational resources, and wirelesscommunication channels. But it does not help you identify what is bad for a network, how to protect the integrity of your network! Machine Learning (ML) and Artificial Intelligence (AI) techniques have become one of the efficient tools in detecting complex intrusion patterns, during recent years. This research paper provides an overview of various AI and ML-based intrusion detection approaches in WSN domain. This study provides a comprehensive review of different detection approaches such as supervised learning algorithms, unsupervised learning techniques, deep learning methods, and hybrid detection systems. Also, it discusses widely used datasets, feature extraction methods and popular performance measures which include accuracy, precision, recall, F1 score and false positive rate. Moreover, the review highlights and compares pros and cons of several potential machine learning algorithms employed for intrusion detection in resource constrained sensor networks. In addition, this paper showcases specific research challenges such as energy consumption, dataset imbalance, distributed detection methods and model explainability. Finally, this paper identifies potential future research directions to improve the efficiency and scalability of intrusion detection systems (IDS) for next-generation WSNs, including lightweight deep learning models, federated learning, edge intelligence and explainable artificial intelligence.