An ultrasonic sensor provided with: a substrate having at least one opening part 18; a diaphragm 50 provided on the substrate so as to close up the opening part 18; a plurality of first electrodes 14 provided on a side of the diaphragm 50 opposite the opening part 18 so as to be aligned in a direction Y, the first electrodes 14 extending in a direction X orthogonal to the direction Y; a plurality of second electrodes 16 provided on a side of the diaphragm 50 opposite the opening part 18 so as to be aligned in the direction X, the second electrodes 16 extending in the direction Y; and a plurality of piezoelectric layers 15 provided between the first electrodes 14 and the second electrodes 16 in a section in which at least the first electrodes 14 and the second electrodes 16 intersect, wherein the ultrasonic sensor is provided with two or more ultrasonic elements in which the area of an active part relative to the area of a movable part is different in plan view, where the active part is defined as a section in which the first electrodes 14, the piezoelectric layers 15, and the second electrodes 16 overlap in a direction Z orthogonal to the direction X and the direction Y, the movable part is defined as a region in which the diaphragm 50 is capable of vibrating due to driving by the active part, and a single ultrasonic element is defined as a unit comprising one movable part and an active part provided within the one movable part in plan view.L'invention concerne un capteur ultrasonore qui est muni : d'un substrat possédant au moins une partie ouverture (18) ; d'un diaphragme (50) agencé sur ledit substrat de manière à boucher la partie ouverture (18) ; d'une pluralité de premières électrodes (14) qui est agencée côté opposé à ladite partie ouverture (18) sur ledit diaphragme (50) de manière à être rangée dans une direction Y, et qui se prolonge dans une direction X perpendiculaire à ladite direction Y ; d'une pluralité de secondes électrodes (16) qui est agencée côté