Flexible sensors can measure various stimuli owing to their exceptional flexibility, stretchability, and electrical properties. However, the integration of multiple stimuli into a single sensor for measurement is challenging. To address this issue, the sensor developed in this study utilizes the natural biopolymers sodium alginate and carboxymethyl cellulose to construct a dual interpenetrating network, This results in a flexible porous sponge that exhibits a dual-modal response to strain and magnetic stimulation. The dual-mode flexible sensor achieved a maximum tensile strength of 429 kPa and elongation at break of 24.7%. It also exhibited rapid response times and reliable stability under both strain and magnetic stimuli. The porous foam sensor is intended for use as a wearable electronic device for monitoring joint movements of the body. It provides a swift and stable sensing response to mechanical stimuli arising from joint activities, such as stretching, compression, and bending. Furthermore, the sensor generates opposing response signals to strain and magnetic stimulation, enabling real-time decoupling of different stimuli. This study employed a simple and environmentally friendly manufacturing method for the dual-modal flexible sensor. Because of its remarkable performance, it has significant potential for application in smart wearable electronics and artificial electroskins.