The ECG (electrocardiogram) function in the smartwatch allows users to make short-term recordings of heart activity. This feature can detect certain heart rhythm irregularities such as atrial fibrillation, which is crucial for early detection of potential heart problems.