added _getitem_ function for SensorArray object