declarando function find_device_opp