Exploring the application of electromagnetic flow meters in environmental protection