Smart traffic light junction management using wireless sensor networks