After the air-tightness is enhanced by the treatment such as packaging, the device is completed as the product by attaching a connector (flexible printed circuit: FPC) for connecting the element formed on the substrate or for connecting the terminals drawn from the circuit to the external signal terminals.