In this paper, a fuzzy logic–based jamming detection algorithm (FLJDA) is proposed to detect the presence of jamming in downstream data communication for cluster-based wireless sensor networks. The proposed FLJDA keeps an eye on the existing nodes and new node to determine their behavior by applying fuzzy logic on measured jamming detection metrics. To monitor the behavior of the nodes, the FLJDA computes the jamming detection metrics, namely, packet delivery ratio and received signal strength indicator. The major features of this paper are the following: (1) The jamming detection algorithm is specifically implemented for downstream data communication, (2) cluster head estimates jamming detection metrics for detecting the jamming unlike the existing algorithms where individual nodes explicitly collect the jamming detection metrics, and (3) the proposed algorithm optimizes the jamming detection metrics on the basis of fuzzy logic unlike the existing approaches, which uses merely jamming detection threshold alone for jamming detection. The simulation results of the proposed system provide the true detection ratio as high as 99.89%. Copyright © 2018 John Wiley & Sons, Ltd.