update_data by sensor