How BOD and COD analyzers work and their importance in STP & ETP Plant

How BOD and COD analyzers work and their importance in STP & ETP Plant