Add command queue
Add arduino code
add command queue to the daemon and a WAIT command to wait for the queue to be empty