Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached to pin 2. const int buttonPin = 2; // the number of the pushbutton pin const int ledPin = ...
In this video, I'm exploring the use of Mini PIR Sensors with ESP32 with both Arduino-based projects as well as making a movement sensor for Home Assistant by using ESPHome. The sensor is quite ...