Nodemcu Pir Motion Detector

The PIR would read garbage, totally random values. The issue is that although the logic is 3.3v it has to be powered with at least 5v. The trickiest part was to figure out how to power the PIR from a NodeMCU which only has 3.3v Turns out some PIR have a voltage regulator that brings 5 to 3