Refactored duplicate handling of errors in climate sensors for water meter module