Tankless water heaters use heating coils to warm water as needed, providing hot water on demand. When you turn on the faucet, a flow sensor detects the water flow and sends an electrical signal to the heating elements, which then warm the water to a set temperature.