Piezoelectric and triboelectric nanogenerators (P-TENGs) have emerged as promising technologies for converting mechanical energy into electrical energy, with potential applications in self-powered wearable and environmental monitoring devices. Modular design in P-TENGs, characterized by the flexible assembly and customization of device components, enables the development of sustainable and versatile chemical sensors. In this review, we focus on the role of modularity in P-TENG-based chemical sensing, discussing how it enhances design flexibility, sensing versatility, scalability, and integration with other technologies. We explore the various strategies for functionalizing P-TENGs with specific recognition elements, facilitating selective and sensitive detection of target chemicals such as gases, biochemicals, or biomolecules. Furthermore, we examine the integration of modular P-TENGs with energy storage devices, signal conditioning circuits, and wireless communication modules, highlighting the potential for creating advanced, self-powered sensing systems. Finally, we address the challenges and future directions in the development of modular P-TENG-based chemical sensors (PCS and TCS), emphasizing the importance of improving selectivity, stability, and reproducibility for practical applications.