Webthing PIR Motion Sensor using Wemos D1 Mini Pro and PYE_IR Sensor Module
A simple Webthing PIR sensor test code, using ISR to capture PIR triggers. The ESP8266 Module used is a Wemos D1 Mini Pro (16MB) clone, available from
https://www.tindie.com/products/mostlyrobots/wemos-d1-mini-pro-16mb-with-external-antenna/
Although the code indicates a HC-SR501 sensor, the actual sensor used is a PYE_IR sensor module from Keyestudio. Data available from
https://wiki.keyestudio.com/Ks0052_keyestudio_PIR_Motion_Sensor
Whilst learning to code ESP-8266 devices and Webthings, the following URLs were used as references.
https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
https://randomnerdtutorials.com/interrupts-timers-esp8266-arduino-ide-nodemcu/
https://web-relays.com/en/blog/esp8266-multiple-ssids-using-one-esp8266-module/
https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
https://www.makerguides.com/hc-sr501-arduino-tutorial/
https://github.com/Diallomm/webthings_pushbutton_esp32
https://randomnerdtutorials.com/esp8266-nodemcu-static-fixed-ip-address-arduino/
https://microcontrollerslab.com/esp8266-interrupts-timers-arduino-ide-nodemcu/
http://docs.iot-bus.com/en/latest/mozilla-iot-examples/mozilla-iot-bus-hcsr501-pir-thing.html