Problems merging 2 codes (blinking light and dfplayer)

That is not 1 sketch. It is your original PIR sketch and then a different sketch which measures distance. You need to combine them. Copy all the code inside setup() and add it to your original setup() code. Do the same for loop but then instead of the PIR trigger setting isActive, it would be distance.