How to combine Lorawan deep sleep and sensor code

I am trying to combine the code for Lorawan deep sleep and the temp/humidity add on sensor.

I am used to using just the one INO file in Arduino IDE, but the deep sleep example has three files, the deep sleep ino, the lora handler.cpp and main.h.

For integrating the temp/humidity reading into the deep sleep, where is the appropriate place to read the sensor and construct the lora packet ready for sending on each wake up?

thanks in advance