Heart rates with arduino

Hi, I'm making a heart rates in arduino UNO R3, with a MAX30102 to measure heartbeat and blood oxygen level, a display LCD, and HC-05 (bluetooth) to transfer data to app. I want the measurements to apper in the app and store them every time I measure, like a database. But I don't know how to make the code, and I could't find it.
Can someone help me please.


thats the screen of the app, I'm brazilian, that's why it's in portuguese.


and thats the code I've already made

Show us the Arduino code