A semiconductor device (20;20A) includes an insulation layer (31), a wiring pattern (32) formed on a lower surface (31 B) of the insulation layer (31), and a sensor element (40) flip-chip-connected to the wiring pattern (32). The sensor element (40) includes an active surface (40A), including a sensor portion (41) adapted to perform fingerprint recognition, detection of a touching operation, or recognition of biometric information of a user, and a rear surface (40B), located at a side opposite to the active surface (40A). An encapsulation resin (70) fills a gap between the lower surface (31 B) of the insulation layer (31) and an upper surface of a wiring substrate (60), facing the rear surface (40B) of the sensor element (40) and connected to the wiring pattern (32) by a connecting member (50). The entire active surface (40A) of the sensor element (40) is covered by underfill (45) formed between the active surface (40A) of the sensor element (40) and the lower surface (31 B) of the insulation layer (31). The insulation layer (31) includes an upper surface (31A), defining an uppermost surface and free from a wiring layer.