This work presents a novel method to assess the condition of Caenorhabditis elegans (C. elegans) through a resistance measurement of its undulatory locomotion speed inside a micro channel. As the worm moves over the electrode inside the micro channel, the length of the electrode changes, consequently behaving like a strain gauge. In this paper, the electrotaxis was applied for controlling the direction of motion of C. elegans as an external stimulus, resulting in the worm moving towards the cathode of the circuit. To confirm the proposed measurement method, a microfluidic device was developed that employs a sinusoidal channel and a thin polydimethylsiloxane (PDMS) layer with an electrode. The PDMS layer maintains a porous structure to enable the flexibility of the electrode. In this study, 6 measurements were performed to obtain the speed of an early adult stage C. elegans, where the measured average speed was 0.35 (±0.05) mm/s. The results of this work demonstrate the application of our method to measure the speed of C. elegans undulatory locomotion. This novel approach can be applied to make such measurements without an imaging system, and more importantly, allows directly to detect the locomotion of C. elegans using an electrical signal (i.e., the change in resistance)