Issues in getting sensor data