In collaboration with artist Kal Spelletich, I helped develop a number of sensor-driven kinetic artworks that mimic organs. Note these are artistic representations and are not meant for literal organ replacement! :)
For the artificial heart, I reverse-engineered the serial data stream from a Contec CONTEC CMS50D+ pulse oximeter and used that to drive a stepper motor that squeezes a pump in synchrony with the participant's heart. Open-source code is available here: https://github.com/headrotor/art-sensors/tree/master/spO2
For the artificial lungs, I designed a motorized bellows system driven by a millimeter-wave sensor that wirelessly senses a subject's respiration. Mechanical lungs inhale and exhale with the participant.
The code is open source and is freely available here: [https://github.com/headrotor/art-sensors/tree/master/breath]