Decode rf remote signals with ESP32 or node MCU?
For ESP32, you should provide real GPIO number.
For instance:
mySwitch.enableReceive(13);
And without deep explanation, believe that it properly works
with GPIO 13 and 27.
Details you can find by google...