Reed switches, PIR sensors and MQTT

Hello there. I have 3 nodemcu (esp8266) boards that i have attached 5 reed switches on each one and it is spread around the house to monitor doors and windows status (open, close). The output is send to a mqtt broker that i have in a Raspberry PI. So far so good.
I would like to extend the capabilities of this house monitoring that i have with movement sensors. So when it is armed and gets a movement, send a message to mqtt. I thought of using this sensor , unless you have something else to propose.
the basic idea is to have a nodemcu with:

  • reed switch hallway
  • reed switch bedroom
  • reed switch living_room
  • pir sensor hallway
  • pir sensor living_room

Questions:
Will the PIR see in a pitch black area (eg backyard or a room)? Also will the current code support this or do i need something else?

byte sensorPins[SENSOR_COUNT] = {5, 4, 14, 12, 13}; 
boolean sensorStates[SENSOR_COUNT] = {1, 1, 1, 1, 1};
String deviceName = DEVICE_NAME;
String sensorNames[SENSOR_COUNT] = {"hallway","bedroom","livingroom","kidsroom","door"};

Will the PIR see in a pitch black area (eg backyard or a room)?

Yes, it "sees" the heat rays of your body, so the light level is completely irrelevant.

Also will the current code support this or do i need something else?

We don't know because your hiding your code from us.