A professional plumber can help test the level of hard water in your home. You might even be able to detect its presence on your own. If you notice a chalky white or yellow buildup around your faucets or drains, its likely you have hard water, putting your tankless water heater at risk.
Of course, you can also prevent hard water damage altogether with the installation of a whole house water softener.