A portable and cost-effective real-time cardiotoxicity biosensor was developed using a CMOS imaging module extracted from a commercially available webcam. The detection system consists of a CMOS imaging module, a white LED and a pinhole. Real-time image processing was conducted by comparing reference and live frame images. To evaluate the engineered system, the effects of two different drugs, isoprenaline and doxorubicin, on the beating rate and beat-to-beat variations of ESC-derived cardiomyocytes were measured. The detection system was used to conclude that the beat-to-beat variability increased under treatment with both isoprenaline and doxorubicin. However, the beating rates increased upon the addition of isoprenaline but decreased for cultures supplemented with doxorubicin. Moreover, the response time for both the beating rates and the beat-to-beat variability of ESC-derived cardiomyocytes under treatment of isoprenaline was shorter than doxorubicin, although the amount of isoprenaline used in the measurement was three orders of magnitude lower than that of doxorubicin. Given its ability to perform real-time cell monitoring in a simple and inexpensive manner, the proposed system may be useful for a range of cell-based biosensing applications.