an automatic gate opens and closes by itself