You wouldn’t, it’s volt free - putting 230VAC into a UBS input will let the magic smoke out.
What you want is a PIR that has a volt free contact. Like this one:
(Here’s a link to the actual product)
The L and N terminals are permanent mains power to actually power the PIR itself. Then you have COM, NO and NC terminals (for those of you who are unfamiliar, that means common, normally open and normally closed).
The names speak for themselves really. The normally closed contact is connected to COM when there is no motion. The normally open is connected to COM when there’s no motion. They swap when motion is detected, i.e. the NO terminal closes and the NC opens.
In the above example, you’d wire the GND of the UBS into COM, and IN1 to the NC terminal, since by default the UBS expects a NC operation. However, if you need to use NO (maybe because the PIR you’re using only has COM and NO terminals) you can change the operation by setting parameter 3 to ‘0’. If you’re using IN2, it’s parameter 4.
One other gotcha is that the UBS needs DC power (9-30V) - so factor that in. Or, try and find an original Fibaro Door Sensor (version 1) - that is battery powered and has a single NO contact that you could use for this.