I take it that's a 1 wire sensor? If so, that should work in theory. Stock sensor is two wire, obviously.
Pin A on the connector is light green/black and goes to ECU pin 20. Pin B is purple/white and goes to ecu pin 21.