samples: grove_temperature: Use device name from Kconfig
samples: grove_temperature: Use device name from Kconfig

Use Kconfig to get device name. Make LIBC conditional to get
output.

Signed-off-by: Punit Vara <2ba5e82aa6fb4e68460f49bedefe3af5717cea9b@intel.com>

zephyrproject-rtos/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,finikorg/zephyr,galak/zephyr,nashif/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,nashif/zephyr,finikorg/zephyr,explora26/zephyr,kraj/zephyr,Vudentz/zephyr,punitvara/zephyr,nashif/zephyr,nashif/zephyr,Vudentz/zephyr,galak/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,ldts/zephyr,nashif/zephyr,finikorg/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,explora26/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,punitvara/zephyr,punitvara/zephyr,galak/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,finikorg/zephyr,Vudentz/zephyr,galak/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr