NodeMCU code for use with PIR Sensor
Basically, the Vcc goes into the jumper pin on the upper left. Adjust the two yellow knobs all the way counter clockwise. This affects the timing and the sensitivity. See links at the end for more details.
PIR Wiring This setup is used for 3.3V input bypassing the stepdown voltage.
Additional Information:
https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/testing-a-pir
https://www.instructables.com/id/Convert-a-5v-PIR-Motion-Sensor-to-33v-for-ESP8266/