Can you please move the ADC and I2C sensor measuement parts out of the ISR? Instead of calling them directly in the ISR, please set a flag inside ISR when ISR is triggered. In the main()'s while loop, keep checking the status of this flag and perform ADC and I2C sensor operatios when this flag is set true.
Thanks for the information. I moved all of the code to the main loop and it worked without issue. I assume that most commands won't be able to execute if inside the ISR?