This study focuses on the <i>Pteroptyx tener</i> species in the Sepetang River, Malaysia, aiming to evaluate the firefly’s abundance and explore its correlation with various biotic and abiotic parameters. The study was conducted over six months, from November 2021 to April 2022, utilizing Geographic Information System (GIS) software to apply hotspot mapping and Inverse Distance Weighting (IDW) analysis to elucidate the spatial distribution of firefly populations. A total of 111,615 individuals were recorded, with a particular focus on this firefly species’ presence on their display trees. Hotspot analysis showed that Station 6, located at the mouth of a river with dense mangroves, hosted 55,723 fireflies (50.01%). In contrast, Stations 9 and 10, near ponds and shrimp settlements, recorded 517–723 fireflies (0.65% and 0.46%). Pearson’s correlation coefficient (r) unveiled a statistically significant positive correlation (r = 0.88, p < 0.05) between wind speed and the abundance of firefly populations within the Sepetang River. However, no statistically significant correlation (p > 0.05) was found between firefly abundance and various other abiotic parameters, including relative humidity (RH), air temperature, tide level, pH, electrical conductivity (EC), salinity, total dissolved solids (TDS), and water clarity. Thus, the results revealed the preference for fireflies due to the availability of vegetation, wind speed and minimal disturbance in this area. In conclusion, this study’s information significantly adds to our understanding of these interesting insects and their complicated relationships in nature. It underscores the importance of preserving their habitats and ecosystems.