Well you have something wrong. Either a bad sensor or soldier connections that were not done right or other types of connections that have come loose.
The two brown wire's are for the heating element. And they have no polarity. Be sure you match the wires up correctly. It is a pain in the but. I did it also with a bosh sensor.