Design and simulation of an integrated optical CMOS heart rate sensor