The primary function of all sap flow sensors is to measure temperature changes along the tree after applying heat to a specific point. This process is based on the principle that the applied heat is transferred by the sap moving through the tree, and the rate of heat transfer correlates with the sap flow rate.