Arduino skips code on liquid filler

Yup, I was suspicious the interrupts were the root cause and this almost confirms it, gonna try thinking of something else, maybe replacing interrupts and nointerrupts with just turning on and off the sensor.