Connect the HC-06 module to the ESP32 as follows:

Use HardwareSerial.h library to read data send by the module