Electronic flow measurement for harsh environments