noInterrupts(); //Disable interrupts // critical, time-sensitive code here interrupts(); //Re-enable interrupts