sensorArray moved to lib and cleanup