A microelectromechanical device includes a functional layer including a first material and a deformable layer including a second material. The ferromagnetic material may be quickly heated when subjected to high frequency alternating current through the conductor. A first plug is in contact with the second electrode through the second insulation layer.