The blue sensor is for the dash gauge.
It has a single cable although some have 2 pins.
A quick test is to ground the lead, the gauge should go to the top/red.
The brown (or black on MEMS 3 cars) has a 2 cable plug and is what the ECU uses.
A quick test is to unplug and the front radiator fan should operate.
Home to black Alfa Romeo 159 3.2 V6 Q4 ,green MGF VVC and red MG Maestro T16.
MG - the friendly marque.