PPG Device with Dancing Led Cube

Hi I tried to modify the codes for medical side of it but im not sure but it's still not working. Can you help me with it ?

PPG01.ino (6.2 KB)