Both pirPin and button1Pin are defined as being pin 2. You can't have them both connected to that same pin. Once you fix that you can test the program and tell us what it is doing that is different from what you want it to do.
Steve
Both pirPin and button1Pin are defined as being pin 2. You can't have them both connected to that same pin. Once you fix that you can test the program and tell us what it is doing that is different from what you want it to do.
Steve