What’s the proper way to set motion sensor?

On your mmWave sensor question, see the following:

Best mmWave Sensor to Use with ST? (human presence sensor/occupancy sensor)