Code for arduino controlled bike/pedestrian counter