The invention relates to the technical field of novel high-pressure detection devices, in particular to a novel high-pressure sensor and an electric pressure cooker. The pressure sensor comprises a body seat, wherein an air inlet is formed in the upper part of the body seat and communicated with an inner cavity in the body seat, a piston is arranged in the inner cavity, and the outer wall of the piston is tangent to the inner wall of the inner cavity; a magnetic ring is arranged on the piston, and an adjusting piece is arranged at an opening in the bottom of the inner cavity; an elastic pieceis abutted between the piston and an adjusting screw, and a coil is arranged on the outer side of the inner cavity and connected with a circuit. The pressure sensor is directly communicated with the inside of the electric pressure cooker, pressure inside the electric pressure cooker is measured directly, so that safety of the electric pressure cooker can be improved, the pressure can be automatically adjusted according to the pressure values required for cooking different kinds of food, and more tasty and more delicious food can be cooked.