I've got a raw PIR sensor with three pins coming off of it.
I'm hoping to hook this up to my arduino. I've been trying this schematic, according to this website I found. How to use Pyroelectric ("Passive") Infrared Sensors (PIR)
Schematic:
Using this code, I've been trying to monitor what the sensor is doing, but the serial monitor just seems to be outputting zero. I've seen other PIR sensor schematics online and they all seem to be attached to a chip. Is it possible to use just the raw sensor that I've got?
int pir_pin = 3;
void setup() {
Serial.begin(9600);
pinMode(pir_pin, INPUT);
}
void loop() {
int sensorValue = digitalRead(pir_pin);
Serial.println(sensorValue);
delay(1);
}