a1604:
...if there's a way to store the commands given to arduino and execute them at the desired timing later while simultaneously I can read sensor input and start further processing.
http://www.u-needa-state-machine.com
OK so there's no .com but that's what you need. It's a kind of multitasking.