This thesis presents preliminary work toward developing a solution for measuring temperature, pressure, and flow in district heating and cooling networks by using available thermal energy in pipes with a focus on flow measurement using ultrasonic sensors. The method shown here can also be used for water distribution if a heating pipe is nearby. The energy harvesting is done by a thermoelectric generator (TEG) using the Seebeck effect, the data collected is mentioned to be transmitted over LoRa but the data transmission is not tested. The fow measurement uses ultrasonic sensors together with a time to digital converter TDC-GP22 to measure the flow, with ultrasonic sensors it is possible to measure fow in either direction. The setup was visually compared to a Coriolis fowmeter Coriolis master FCB430 by reading the fow directly on the display. This achieved an error of 0 − 5% by sampling 10 denoised samples while removing outliers and averaging the remaining samples with convergence to 2.84% and standard deviation of 0.687% at 2800liter/hour.