Optical monitoring of heart beat