A Building Automation System (BAS) is a system that controls and monitors various building systems, such as heating, ventilation, air conditioning, lighting, security, etc. A building automation system aims to optimize the performance of these building systems, reduce energy consumption, and enhance occupant comfort.