alarm system using LDR but i need PIR Please Help

In the attached sketch is a alarm that uses a LDR conected to pin A0 to trigger the alarm
i need to use a PIR To trigger the alarm instead of LDR Can someone Please help me

Using Arduino uno

Laser_Project.ino (2.65 KB)

Do you have a PIR sensor? Will you post a data sheet?

Why didn't you read the how to use this forum sticky before posting?

yes i do im using https://www.jaycar.co.nz/arduino-compatible-pir-motion-detector-module/p/XC4444

(deleted)

(deleted)

hi thanks for the reply yes i use pulldown on arm button pin will try what you have sead thanks again
haha i was wondering about the delays

(deleted)

is this sketch close to what you meant

Laser_alarm_test.ino (2.78 KB)

(deleted)