A sensor, an electronic device comprising the sensor, and a vital signs detection method using the sensor. The sensor comprises: a first base body (1) having a first surface and comprising a first sensing portion (3) on the first surface; a first signal generating component (8) and a second signal generating component (11) which both are provided on the first surface; a motion sensing member (2) provided on the first surface, a vibration clearance existing between the motion sensing member (2) and the first surface, and the motion sensing member (2) comprising a second sensing portion (4) and a third sensing portion (5); wherein the first sensing portion (3) and the second sensing portion (4) can move relatively, the second signal generating component (11) is triggered to generate a first detection signal when the first sensing portion (3) and the second sensing portion (4) move away from each other, the third sensing portion (5) is used for sensing external vibration and driving the motion sensing member (2) to vibrate in a direction perpendicular to the first surface so as to trigger the first signal generating component (8) to generate a second detection signal. The sensor is simple in structure, can detect both breathing and heartbeat, and has high detection accuracy.L'invention concerne un capteur, un dispositif électronique comprenant le capteur, et un procédé de détection de signes vitaux utilisant le capteur. Le capteur comprend : un premier corps de base (1) ayant une première surface et comprenant une première partie détection (3) sur la première surface ; un premier composant de génération de signal (8) et un second composant de génération de signal (11) qui sont tous deux disposés sur la première surface ; un élément de détection de mouvement (2) disposée sur la première surface, un jeu de vibration existant entre l'élément de détection de mouvement (2) et la première surface, et l'élément de détection de mouvement (2) comprenant une deuxième partie déte