How to use Software Serial with Arduino Nano Esp32

Hi, I want to use software serial with the Arduino Nano Esp32 but there is no preinstalled library for that does anybody know a library that works with the Nano esp 32

Welcome to the forum

Why ?

The Nano ESP32 has 2 hardware UARTs

The ESP32 has 2.5 UARTS
See here

best regards Stefan

I heard that if you use the hadware serial you cant transmit the recived data to the serial Monitor

That is true for the Nano Classic and many other Arduinos based on the 328 chip but not for the ESP32 based board

Please conform that you are using a Nano ESP32

yea i am using the nano esp 32 can you please give me an example code that forwards everything that you write to the serial console to the uart pins an every thing that is recived to the serial monitor

Why not try it yourself ?

The object named Serial receives input from the Serial monitor and sends output to it

The object named Serial0, however, receives input from pins 0 and 1 and sends output to them

See the UART section of https://docs.arduino.cc/tutorials/nano-esp32/cheat-sheet

Thanks