Wireless stick and sds011 air sensor

Hello all,

Could use some info. trying to use the heltec wireless stick to hook up to sds011 air sensor. What pinout on the wireless stick is to connect out to the rx & tx on the sensor. Looking at Wireless Stick Pinout Diagram. Could use some help here thanks.

also other chip I have been using and accustomed to is ESP32 dev kit but going to convert to lorawan and WiFi so need to get this working quickly for open source project. Any help is appreciated. normal pinout from ESP32 dev kit board to sds011 used and working is port 16 & 17 image attached

You can use HardwareSerial Library.

where would i find that…? not sure im following, could you expand on this.

are you speaking of using the preinstalled cmd for finding ports? such as receive

#include <HardwareSerial.h>
HardwareSerial SerialTFMini( 1 );
HardwareSerial SerialBrain( 2 );
////// serial(1) = pin27=RX green, pin26=TX white
////// serial(2) = pin16=RXgreen , pin17=TX white
#define SerialDataBits 115200
void setup()
{
SerialBrain.begin( SerialDataBits );
SerialTFMini.begin( SerialDataBits, SERIAL_8N1, 27, 26 );
}
void fSendLIDAR_InfoSerialToBrain( void *pvParameters )
{
struct stu_LIDAR_INFO pxLIDAR_INFO;
for ( ;; )
{
xEventGroupWaitBits (eg, evtGetIMU, pdTRUE, pdTRUE, portMAX_DELAY);
xSemaphoreTake( sema_LIDAR_FOR_ALARM, xSemaphoreTicksToWait );
xQueueReceive ( xQ_LIDAR_FOR_ALARM, &pxLIDAR_INFO, QueueReceiveDelayTime );
xSemaphoreGive( sema_LIDAR_FOR_ALARM );
int CellCount = 1 ;
// send LIDAR info for alarm
String sSerial = “”;
sSerial.reserve ( 300 );
sSerial.concat( “<#,” ); //sentence begin
sSerial.concat( String(ScanPoints) + “,” );
sSerial.concat( String(pxLIDAR_INFO.ServoSweepUp) + “,” ); // get direction of scan
for ( CellCount; CellCount <= ScanPoints; CellCount++ )
{
sSerial.concat( String(pxLIDAR_INFO.Range[CellCount]) + “,” );
}
sSerial.concat( “>” ); //sentence end
vTaskDelay( 10 );
SerialBrain.println ( sSerial );
}
vTaskDelete( NULL );
} // void fSendLIDAAR_InfoSerialToBrain( void *pvParameters )

also think you posted on a different thread on fatal error. no response to uploading revised or different sketch, so could not upload a library even if I wanted to at this time. I did try the prg button again and still have fatal error:esp 32 error: timed out waiting for packet header.