This paper presents a modification to the Pan-Tompkins algorithm for QRS detection in electrocardiogram (ECG) signals. The Pan-Tompkins algorithm uses a high pass filter and differentiator to detect QRS complexes. This paper replaces the high pass filter and differentiator with a Savitzky-Golay filter. The modified algorithm and original Pan-Tompkins algorithm are applied to normal and diseased ECG data showing ventricular tachyarrhythmia. The results show that the modified algorithm can detect QRS complexes with higher amplitudes compared to the original algorithm, without requiring a high pass filter or differentiator.