A heartbeat detector using signal processing