ABSTRACT Accurate estimation of the number of occupants in a building’s thermal zone is a crucial input for the dynamic estimation of the cooling load of a heating, ventilation, and air conditioning equipment. This data, in conjunction with an intelligent control algorithm, can be judiciously employed for enhancing occupant comfort and achieving substantial energy savings through demand-driven operation. In this work, we propose a WiFi channel state information (CSI) based passive people counting model that utilizes a wavelet-based signal denoising scheme and an artificial neural network (ANN) model for automatic feature extraction. The application of the proposed model on a public dataset shows more than 99% accuracy in detecting up to eight people in three rooms of varying sizes. The proposed model was also validated on CSI samples collected from a laboratory environment with five occupants, using ESP32, a low cost and low power IoT device. The results show that the proposed model can perform people counting with an accuracy of up to 98%, using single- and multi-link measurements.