Device that can sense heart rate