PIR Sensor help

Hi.

Hi have Setup a PIR Sensor on HA in Raspberry Pi and is working OK.

binary_sensor:
- platform: rpi_gpio
pull_mode: pull-up
ports:
11: PIR
I use the PIR for an automatization than turnOn lights. and is working OK.

The issue is than the PIR detection is taking around 10 minutes. I move around the PIR and just 10 o 15 minutes after the PIR state changes en the Register and the automatization is launched.

Any help to get a shorter response?
Thanks.