BRIM is a wireless sensor network using ZigBee technology to connect sensors and control units. It provides a platform for building sensing, analysis, control, and applied intelligence. The system collects occupancy information to learn patterns and trends, processes stored data to predict usage, and generates cost savings through real-time analytics and automated, adaptive control of lighting and other systems based on changing usage patterns.