added more debug / state checking to Arduino node