use <Type>AttributeSensor instead of BasicAttributeSensor<<Type>>(<Type>class, ...)