An implantable and versatile piezoresistive sensor for the monitoring of human-machine interface interactions and the dynamical process of nerve repair.