Motion Detected: ESP32 with PIR Sensor (HC-SR501)
🧠 What is a PIR Sensor?PIR = Passive Infrared SensorA PIR sensor detects motion by measuring changes in infrared radiation.Every warm object (like humans and animals) emits infrared (IR) radiation.PIR sensors don’t emit anything; they only detect IR changes. That’s why they are called passive.🧪 How Does It Work?The PIR sensor has two slots made of pyroelectric sensors.When a human or animal moves in front of the sensor, one slot sees more IR radiation than the other.This sudden change causes a voltage difference and the sensor outputs HIGH (3.3V or 5V) for a short...
