Heartbeat sensor