Adding time limit to sensor data search