This study shows that piezoelectric sensors placed under a mattress can detect irregular heart rhythms like atrial fibrillation with high accuracy, even if the sensors shift during sleep.