halo guys.
at this time I'm learning arduino and PIR sensor.
and it will used to count people like the Thread Starter project.
but i have the litle problem.
my sensor always counting 3 time for 1 motion. sometime it counting 2 time, sometime 1.
and what I want is, PIR counting 1 for 1 motion.
Im sorry for my weird english, because english is not my primary language ![]()
I hope you guys can understand.
this is the code
#include <LiquidCrystal.h>
int ledPin = 13;
int pirPin = 7;
int statusPir = LOW;
int readPir = 0;
int counting = 0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
 pinMode(ledPin, OUTPUT);
 pinMode(pirPin, INPUT);
 lcd.begin(16, 2);
}
void loop() {
 readPir = digitalRead(pirPin);
 if (readPir == HIGH) {
  digitalWrite(ledPin, HIGH);
  if (statusPir == LOW) {
   counting = counting + 1;
   lcd.setCursor(0, 0);
   lcd.print("Intruder ");
   lcd.print(counting);
   lcd.println(" Aliens");
   statusPir = HIGH;
  }
 } else {
  digitalWrite(ledPin, LOW);
  if (statusPir == HIGH) {
   // OFF
   statusPir = LOW;
   lcd.setCursor(0, 1);
   lcd.println("NO INTRUDER");
   lcd.clear();
  }
 }
}
// okay lets learning TONE :D