i want to apply formula. but getting 0 at output.
#include "HX711.h" int data; HX711 scale(A1, A0); // parameter "gain" is ommited; the default value 128 is used by the library void setup() { Serial.begin(38400); scale.set_scale(2280.f); scale.tare(); } void loop() { Serial.print("one reading:\t"); data==(scale.get_units()/10); Serial.println(data); // put the ADC in sleep mode delay(500); }
data==(scale.get_units()/10);
?