My concept is to use a Parallax PIR sensor to trigger an Arduino 328 Pro Mini 5V. It seems to work fine other than the false triggering which sometimes can be once a minute or so.
The code is written so that there is a minute of warm up time for the PIR sensor that occurs in the setup. The led then triggers whenever the PIR is high, but the squirt gun can only trigger after ten seconds has elapsed since the last time it triggered and the PIR is high. Could it be electronic noise that triggers the PIR?
In order to stop the false triggers, would it be worth trying any of these?
- Pull down resistor on the PIR pin?
- Low pass filter?
- decoupling on the PIR pin?
I thought I would get an opinion before I tore it apart

