New function for get sensordata