[driver/ds18b20] fix wrong type comparison