Hi dk,
I don't know what kind of receiver module do you use, but if you use a 5 volt module this could by a problem on port D2.
In my code I also added
pinMode(Dx, INPUT);
before
mySwitch.enableReceive(Dx);
and this works for me.
I hope this helps you.
Andreas