Hi everyone,
I’m having some trouble connecting the SeseAir S8 sensor to the Wifi Lora 32 V3 through UART. The board only has two UART ports, one of which is used for communication with the computer’s serial port, and the other for CTS and RTS. I tried using the SoftwareSerial library to create additional UART ports, but I found out that it’s not compatible with the ESP32.
I’ve tried defining the software UART using the following code:
#define RXD2 48
#define TXD2 47
void setup() {
// PC COM Port
Serial.begin(115200);
// UART to Sensair CO2 Sensor
Serial1.begin(9600, SERIAL_8N1,RXD2, TXD2);
}
However, I’ve tested several pins on the board (such as GPIO2-GPIO3, and GPIO48-GPIO47), and although the code compiles without errors, I’m not receiving any data from the sensor.
I’m not sure if the GPIO pins that I’m using are correct for UART communication or if I need to define the software UART in a different way.
Thanks!