I have this code that I made to get the ECG on the serial plotter, however it's really noisy, I don't understand how to make it less noisy and more clear like in the oscilloscope:
Think about this. First time that your signal is over 100, bpm is incremented and multiplied; so now is 6. Next time through loop, you multiply again and bpm becomes 36 (signal < 100). And the third time through loop() (signal < 100), bpm is multiplied again and becomes 216.
You also never reset bpm so it will overflow.
===
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project See About the Installation & Troubleshooting category.
It;s a breadboard, and I'm not using sensors at all. I'm connecting a wire to the patient simulator directly. I'll make the changes to stop the circuit to do the calculations better. Thank you