improved get sensor queries