revise get sensordata from timestamp and latest