A method of assembling an electronic prosthetic aortic valve is provided. The method includes inserting an electronics component into a valve component, the electronics component including one or more electrodes and a prosthetic-valve coil, and the valve component including a frame and prosthetic leaflets coupled to the frame; and coupling the electronics component to the valve component. Other embodiments are also described.