arduino code for intersection detection