refactored out readingSize in AgentSensor constructors