add delay() to arduino loop