Monitoring nocturnal heart rate with bed sensor