heart rate monitor example can't work

Could you post the code and the error messages you received? That would be most helpful.