How to trigger Volumio PLAY with motion sensor (GPIO BUTTONS plugin ?)

Hi to all of you,

after testing the GPIO BUTTONS plugin, I am about to try to trigger PLAY with a motion sensor (ordered today…).
But since PLAY is also PAUSE, I’m wondering if it’s easy to set it so that sensor ON=PLAY, sensor OFF=PAUSE.

Did any of you tried this type of setup ? What would be your advice to achieve this ???

Thanks !!!