I have a PIR EKMC1606112 that I am trying to read using an ESP8266-12e. I have the PIR powered using a 5v regulator so I'm sure it is getting enough voltage. My problem is that when I have the sensor out from the PIR to pin D7 it always reads HIGH. I think it is because the PIR is out putting 4.5-5v @100uA but the ESP likes an input of 3.3v. So I think I need to use some resistors to create a voltage divider. My problem is I'm not sure what size I should use. 1/4watt should work but what resistance. One at X from output to D7 and two at X from output to GND. Am I correct in this assumption and is this the right configuration? What size should I use? 33, 100k, 220k???
I only get HIGH from life. ;) but the PIR goes high with IR activity and needs a pull-down resistor for say 50uA or 3.3V/50u = 67k nearest value to indicate absence.
If you were powering from 5V your ESP might latchup and might get very hot. You better check that 5V is not being used.