Code for MPL3115A2

Hi - I have the MPL3115A2 sensor along with the INPI2 adapter for my Raspberry Pi 3. I am running a science experiment with several children in which we are sending a payload up to near space (~90k feet) via a weather balloon and I would like to use this setup to record pressure, temp, and alt during the journey. However, I am not a programmer and am having a hard time finding or creating code that will have the device logging the data continuously once the power source is connected. Does anyone know where such a code can be found or how to create one? Basically, I just want to be able to plug it in and have it start continuously recording and logging the .csv data immediately to the microSD card.

Thanks for any help!