A sensor includes: a first chip; a second chip disposed on the first chip
through an adhesive member; and a stopper. The second chip is connected
to the first chip through a bonding wire. The stopper limits a
displacement of the second chip when the adhesive member is deformed. The
stopper is disposed around the second chip. Since the displacement of the
second chip is restricted, deformation of the bonding wire between the
first and the second chips is also restricted.