GSM BEE SCALE

Hi friends im am new to arduino and i am working on a bee scale arduino uno , am trying to add a hx711 in to this sketh .this sketh has only dth22 . I prefer this sketch because it is a’’ hand up’’ and send message. Can someone add me the hx711 load cell codes please thanks .

#include "SIM900.h"
#include <SoftwareSerial.h>
#include "call.h"
#include <DHT.h>
#include "sms.h"

SMSGSM sms;
#define DHTPIN 7  
#define DHTTYPE DHT22   

CallGSM call;
boolean started=false;
char sms_text[160];

DHT dht(DHTPIN, DHTTYPE);

void setup()
{
    dht.begin();
    Serial.begin(9600);
    
    if (gsm.begin(9600)) 
    {
        Serial.println("\nstatus=READY");
        started=true;
    } 
    else 
        Serial.println("\nstatus=IDLE");
}

void loop()
{
   float humidity, temperature;
   String smsText ="";

  switch (call.CallStatus())
  {
    case CALL_NONE: // Nothing is happening

      break;

    case CALL_INCOM_VOICE : // Yes! Someone is calling us

      Serial.println("RECEIVING CALL");
       call.HangUp();
       delay(2000);
       humidity = dht.readHumidity();
       temperature = dht.readTemperature();
       delay(2000);
       smsText = "Temperature: "+String(temperature,1)+"C Humidity: "+String(humidity,1)+"%";
       smsText.toCharArray(sms_text,160);
       //Serial.println(smsText);
       sms.SendSMS("+306900000000",sms_text);
      break;

    case CALL_COMM_LINE_BUSY:  // In this case the call would be established

      Serial.println("TALKING. Line busy.");
      
      break;
  }
  delay(1000);
}

Can someone add me the hx711 load cell codes please thanks .

Have you tried to do it yourself ? Start with a separate sketch that reads the load cell. There appears to be at least one library for the HX711 available in the IDE Library Manager and I expect that it has examples with it

I have tried every time i get an error ,this is what i have done can somwone help .

/////////////////////////////////////////////////////////////////
//          Arduino Sends SMS with Sensor Value       v1.01    //
//       Get the latest version of the code here:              //
//     http://educ8s.tv/arduino-sensor-values-via-sms/          //
/////////////////////////////////////////////////////////////////

#include "SIM900.h"
#include <SoftwareSerial.h>
#include "call.h"
#include <DHT.h>
#include "sms.h"
#include "HX711.h"
SMSGSM sms;
#define DHTPIN 7
#define DHTTYPE DHT22
CallGSM;
boolean started = false;
char sms_text[160];
DHT dht(DHTPIN, DHTTYPE);
HX711 cell(12, 13)

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

  if (gsm.begin(9600))
  {
    Serial.println("\nstatus=READY");
    started = true;
  }
  else
    Serial.println("\nstatus=IDLE");
  long zero_factor = 8510214;
  scale.set_scale(2280.f);
}

void loop()
{
  float maza;
  float humidity, temperature;
  String smsText = "";

  switch (call.CallStatus())
  {
    case CALL_NONE: // Nothing is happening

      break;

    case CALL_INCOM_VOICE : // Yes! Someone is calling us

      Serial.println("RECEIVING CALL");
      call.HangUp();
      delay(2000);
      maza = scale.get_units(10), 1;
      humidity = dht.readHumidity();
      temperature = dht.readTemperature();
      delay(2000);
      smsText = "Temperature: " + String(temperature, 1) + "get_units: " + String(maza) + "C Humidity: " + String(humidity, 1) + "%";
      smsText.toCharArray(sms_text, 160);
      Serial.println(smsText);
      sms.SendSMS("+***********", sms_text);
      break;

    case CALL_COMM_LINE_BUSY:  // In this case the call would be established

      Serial.println("TALKING. Line busy.");

      break;
  }
  delay(1000);
}

Please give details of the error

hi UKHeliBob . On botom it writes expected or before void , i think the problem is with the HX711 cell(12, 13).It is on top (.is it on the right place) thanks. john.

JOHN_1973:
hi UKHeliBob . On botom it writes expected or before void , i think the problem is with the HX711 cell(12, 13).It is on top (.is it on the right place) thanks. john.

I knew that I should have been more specific.

When the error occurs click the "Copy error messages" button and paste them here using code tags when you do.

Semicolon missing from the end of this line:

HX711 cell(12, 13)

UKHeliBob:
Start with a separate sketch that reads the load cell. There appears to be at least one library for the HX711 available in the IDE Library Manager and I expect that it has examples with it

Have you first tried a HX711 example sketch as suggested?

Thats right Semicolon missing , I ADDED A HX711 CELL TO IT I CAN’T GET READINGS FROM IT. I UPLOADED TO MY ARDUINO WITH NO ERRORS .DID MISS SOMETHING

/////////////////////////////////////////////////////////////////
//          Arduino Sends SMS with Sensor Value       v1.01    //
//       Get the latest version of the code here:              //
//     http://educ8s.tv/arduino-sensor-values-via-sms/          //
/////////////////////////////////////////////////////////////////

#include "SIM900.h"
#include <SoftwareSerial.h>
#include "call.h"
#include <DHT.h>
#include "sms.h"
#include "HX711.h"
SMSGSM sms;
#define DHTPIN 7
#define DHTTYPE DHT22
CallGSM call;
boolean started = false;
char sms_text[160];
DHT dht(DHTPIN, DHTTYPE);
HX711 scale(12, 13);
void setup()
{
  dht.begin();
  Serial.begin(9600);

  if (gsm.begin(9600))
  {
    Serial.println("\nstatus=READY");
    started = true;
  }
  else
  {
    Serial.println("\nstatus=IDLE");
  }


}
long val = 0;

void loop()
{
long val = 0;
  float maza;
  float humidity, temperature;
  String smsText = "";
  switch (call.CallStatus())
  {
    case CALL_NONE: // Nothing is happening

      break;

    case CALL_INCOM_VOICE : // Yes! Someone is calling us

      Serial.println("RECEIVING CALL");
      call.HangUp();
      delay(2000);
       maza = maza + 1;
      
       // Use only one of these
    // val = ((count-1)/count) * val    +  (1/count) * cell.read(); // take long term average
  val = 0.5 * val    +   0.5 * scale.read(); // take recent average
    // val = cell.read(); // most recent reading
  
    
     ((val - 8330170) /1846.0f     );

      maza = scale.get_units();
      humidity = dht.readHumidity();
      temperature = dht.readTemperature();
      delay(2000);
      smsText = "Temperature: " + String(temperature, 1) + "C Baros: " + String(maza) + "gram  Humidity: " + String(humidity, 1) + "%";
      smsText.toCharArray(sms_text, 160);
      Serial.println(smsText);
      sms.SendSMS("+***************)", sms_text);
      break;

    case CALL_COMM_LINE_BUSY:  // In this case the call would be established

      Serial.println("TALKING. Line busy.");

      break;
  }
  delay(1000);
}

Shouldn't there be a scale.begin() in setup() ?
I would expect that there are examples with the library

((val - 8330170) / 1846.0f     );

What is this line of code supposed to do ?

hi bob thank for your reply .i want the text to be read from the value so i can get readings sms .on my serial moneter i get different readings sms serial moneter reading is 9543587 sms readings is59600

JOHN_1973:
hi bob thank for your reply .i want the text to be read from the value so i can get readings sms .on my serial moneter i get different readings sms serial moneter reading is 9543587 sms readings is59600

I am sorry but I can make no sense of your post.

hi .how can i get this valu Serial.println(( val - 8318366) /2614.f ); so the string at sms can read it, i done somthing rong