Split function select_sensordata().