Self-powered sensor

The invention discloses a self-powered sensor which comprises a shielding housing, a lower cover plate, a bearing plate, an elastic recovery piece and an electrostatic component, wherein a chamber opened at the upper part and the lower part is defined in the shielding housing; the lower cover plate is located at the lower end of the shielding housing; the bearing plate is located at the upper end of the shielding housing; the bearing plate is connected with the shielding housing via the elastic recovery piece; the electrostatic component consists of an electrostatic part, a first insulation piece and a second insulation piece; the electrostatic part comprises a first electrostatic part and a second electrostatic part that are arranged separately; the first electrostatic part is fixedly arranged on the lower surface of the bearing plate via the first insulation piece; the second electrostatic part is fixedly arranged on the upper surface of the lower cover plate via the second insulation piece; a clearance is arranged between the first electrostatic part and the second electrostatic part; the first electrostatic part and/or the second electrostatic part have/has static charge; when the bearing plate suffers an external force, the elastic recovery piece produces deformation, so that relative displacement is produced between the bearing plate and the shielding housing; a distance between the first electrostatic part and the second electrostatic part are driven to be changed; and output voltage of the electrostatic component is changed.