How to create a struct for MAX30102 and ML90614

this doesn't sound like a data structure issue

since you're reading a temperature from both devices, do you want a program where both devices are used at the same time or a program either device can be used to read temperature?