A flow sensor comprises a flow restriction disposed within a passage such that a fluid passing through the passage must pass through the flow restriction. The flow sensor also has an upstream pressure sensor coupled to the passage at a point upstream of the flow restriction and configured to measure and provide an upstream pressure of the fluid within the passage, a downstream pressure sensor coupled to the passage at a point downstream of the flow restriction and configured to measure and provide a downstream pressure of the fluid within the passage, and a temperature sensor coupled to the passage and configured to measure and provide a temperature of the fluid within the passage. The flow sensor also includes a flow sensor processor coupled to the upstream and downstream pressure sensors and the temperature sensor and configured to accept measurements therefrom and calculate a compensated flow rate based at least in part on the measured pressures and temperature.