Migration from esp82666 tag reader to esp32 tag reader

I want to migrate from esp8266 to esp32 tag reader. I buy already made esphome tagreader. and I dont know its firmware.

I have (from left to right):

  1. pn532 nfc tag reader with one LED chip
  2. AM312 PIR sensor
  3. buzzer
  4. rotary encoder KY-040 all this needs to fit on esp32 wemos d1 mini

This is my schedule for pins: 1.pn532 (input) - GPIO25, GPIO27
1a. LED( output) - GPIO23
2. AM312 PIR (input) - GPIO 26
3. Buzzer (output?) - GPIO17
4. Rotary Encoder KY-040 (input) - 3 inputs - GPIO16, GPIO18, GPIO19

  1. [7:26 PM]

Please tell me that those GPIOs are OK. And if you can, please share an example code of firmware.

etc