Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.14 KB

Motion Sensor with ESP32

A simple code to use a motion sensor on ESP32.

At each detection, a webhook is sent to discord ; when the motion stop, another webhook is sent. When the wifi connection is lost and then recovered, a webhook is sent with a "Connection lost for [n] seconds/minutes/hours" message.

Wiring

Materials

  • ESP-WROOM-32 Dev Module
  • Micro USB cable
  • HC-SR501 Motion Sensor
  • Jumper Wires female-female

Wiring Diagram

Wiring diagram of a mensor detector on ESP32

More information Here

Badges

Arduino IDE Espressif

C C++