IF the colors of the cars are different, that could have some bearing on the problem.
The sensor is located very close to the roof and can get head soaked.
Try pointing one of the center vents in the direction of the sunroof switch and see if that helps.
ASE CERTIFIED MASTER AUTO TECHNICIAN
MERCEDES SPECIALIST 11 YRS