The endocrine disrupting substances (EDCs) can block hormones by binding to receptors inside the cell. It causes endocrine disorders by altering the function of the endocrine system and consequently causes adverse health effects in an organism or its progeny. As a result, it triggers the following problems, cancers, tumors and lesions, reproductive inhibition or failure, suppression of immune system, disruption of endocrine (hormonal) system. With its wide application, EDCs are widely detected in the environment and constantly threatening human health. Therefore, EDCs detection and removal is an important. In this study, we demonstrate a system composed of a composite structure of MoS2 nanoflake integrated with PNIPAM hydrogel for the detection of EDCs. Functionalization of the MoS2 nanoflake improves bonding with the hydrogel and bonding with the EDC. These bonds increase the Young's modulus of the hydrogel, so that the equilibrium volume of the hydrogel becomes smaller and the hydrogel shrinks. The adsorption mechanism was discussed with a hydrogel elastic modulus in equilibrium. We confirmed that it can be a good alternative for conventional methods by making a simple sensor. Our system is advantageous compared to conventional methods. Since this strategy enables the simple, one-step, easy to detect, we expect that this platform can serve as an aid or substitute of current time-consuming, high-cost, and laborious water pollution monitoring process.