I think this post may be helpful. https://forum.magicmirror.builders/topic/6987/mmm-pir-sensor-problems/10
It appears that you have wired correctly. Although I would use the Red wire on the VCC for power and the black wire to denote ground and the brown wire as the output wire. Thats typically the way wiring is denoted.
I believe that pin 22 is used for the output so double check that. There is also a delay setting in the config.js that the previous thread speaks of that may impact your setup.
Give it a read.