Measure an electrocardiogram (ECG) with an Arduino Uno and an Olimex-EKG-EMG-Shield and calculate the heart rate variability afterward.