The problem is either a knackered new sensor or a wiring fault to the sensor, check that the wires haven't snapped or partially snapped by the connecter were the wires go in. Have you got access to a multi meter.
Would anyone be interested in all of the glazing for a 1993 5 door mk3 golf, all glass bar the tail gate glass and sunroof. Make me an offer if interested. Cheers