HiI am looking for the same code. I am new to arduino and have designed a respiratory sensor now..i need to calculate breaths per minute by displaying data in pc. i have no idea weather how to count breaths per minute as it will be detecting breaths from 60 seconds data and then will find rate. can any please guide me for breaths detection??