changed time range for getting sensor data