keeping the Arduino in a function for X time