A heating device is provided in a water passageway in a washing or rinsing machine and has a heating element in proximity with a sensor. In one embodiment, the heating element is mounted using a holder in an opening in a wall wherein the wall forms the water passageway. On the holder is also provided a conductivity measuring device which projects into the water passageway. The heating device and conductivity measuring device form a module.