added error reportin to arduino