Added active state for sensors and events