We have discovered that ESP32 devices (like ESP8266 etc.) defaults to client + AP (accesspoint) at least when configured as a client (WiFiClient) with Arduino IDE. Usually, you don't want an extra AP when you set up a IoT device that only works as a client. To fix the problem you need to add the line
WiFi.mode(WIFI_STA);
when setting up the wireless in your Arduino code.
The current PirMotionSensor code needs this fix.