Softwareserial H |link| [TRUSTED]

if (Serial.available()) mySerial.write(Serial.read()); // Send from hardware serial to software serial

// Define the RX and TX pins for SoftwareSerial const int RX_PIN = 2; const int TX_PIN = 3; softwareserial h

Bluetooth projects often use SoftwareSerial.h to allow the Arduino to communicate with a smartphone or PC while keeping the hardware serial (pins 0 and 1) free for uploading code and debugging via the Serial Monitor . 2. GPS Receivers if (Serial