Thermocouple and lightning of water heater