automatic detection of a (dis)connected Arduino