Can you use holy water or blessed oil (like Lourdes oil) in a humidifier?

Yes. This would simply be a way of applying these sacramentals, perhaps an unusual way, but if done with the right intentions of faith and confident devotion, it’s perfectly fine.