Pulse sensor and multplexer Mushield II

Hey,

i’m a master student from Belgium and i have a question about the usage of a pulse sensor for arduino (http://pulsesensor.com/). For my thesis, i am developing a blanket with sensors for under a horse rug. I work with humidity-, temperature- en heartbeatsensors. I lack in experience with arduino so i’ve just copied some codes from the internet and put them togheter in a code. Miraculously, it measures the temperature and humidity, but the heartbeat doesn’t seem to work… Can anyone look at my code en see where there’s a error? On top of the arduino, there’s a muxshield II from Mayhew Labs.

Thank you very much!

Matthias

projectMetMUX.ino (7.45 KB)