https://github.com/nodemcu/nodemcu-devkit
You should be able to take the power from the 3.3V and GND next to the flash button and use the values as shown in the post.
If your PIR is 5V you will need to make a voltage divider from 3 1K resistors or ( 1k & a 2.2K).
Output from PIR -> 1K resistor -> Input to ESP circuit -> 1K resistor -> 1K resistor -> Ground.
See this post. http://jamesreubenknowles.com/level-shi ... ments-1741
Strategy #4 & don't worry about the Danger note at the end - this was taken into account when using 1K.