Store data from weight indicator (SoftwareSerial) to Micro SD Module

Hi everyone, I am new for arduino program. I have a problem to store data from weight indicator (use SoftwareSerial) to Micro SD module.

weighing_1.ino (375 Bytes)

Please read How to use this forum - please read. - Installation & Troubleshooting - Arduino Forum, specifically point #7 about posting code; your code is small enough for that.

Next fix your post. Can't read your code as I'm using a cell phone.

What do you expect your code to do and what does it actually do?

Not an Installation and Troubleshooting question; I have asked moderators to move it to a more suitable section.

OP’s code

#include <SoftwareSerial.h>

SoftwareSerial mySerial(0, 1); // RX, TX   <------<<<< use the pins you want

void setup()
{
  Serial.begin(9600);
  mySerial.begin(9600);

}

void loop()
{
    while (mySerial.available())
    {
      Serial.write(mySerial.read());   // You can also use:     Serial.print((char)mySerial.read());
      delay (2000);
    }

}

Based on the above, I would start with some examples how to write to SD card.
Next instead of writing to serial, you can write to SD.

If you need both serial and SD, store the result of mySerial.read() in a variable (type byte) and write that variable to both serial and SD.