Answer:
The front sensor is reading wether your air/fuel mixture is correct and computer makes adjustments according to a rich or lean reading from o2 sensor. The rear sensor is reading what comes out from the cat/converter to see if converter is doing is job in removing pollutants.