Fiber optic sensor based on reflectivity configurations to detect heart rate