A TPR valve, also known as a temperature pressure relief valve, is a safety device used in water heaters and boilers to release excess pressure and prevent explosions or damage.