A semiconductor device includes a semiconductor substrate, an actuator
provided above the semiconductor substrate to move upwardly, a first
electrode layer which is moved by the actuator, and a cap portion
provided above the first electrode layer and including a second electrode
layer.