I am making a project using a 5kg load cell and an if else statement

Hello I am very new to Arduino and coding and anted to make a project that when the weight that the load cell senses drops bellow a certain value it will trigger a buzzer to make a sound

These are the components that I'm using

I would love it if someone could provide code that would make it so that if the load cell reads lower than a certain value then it will trigger the buzzer to make a sound

I would love it if someone could provide code

I am sure that you would, but this is not a free code writing service. If you want someone to write code for you, you can ask a moderator to move this post to Gigs and Collaborations. Expect to pay.

Or show us what code that you have tried, tell us what the code actually does and how that differs from what you want the code to do and we can try to help.

Read the how get the most out of this forum sticky to see how to properly post code. Remove useless white space and format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code in code tags.

if (loadCellReading() < someThreshold) {
  soundAlarm ();
}

You just need to fill in the blanks.

TheMemberFormerlyKnownAsAWOL:

if (loadCellReading() < someThreshold) {

soundAlarm ();
}




You just need to fill in the blanks.

Your code doesn't compile. :slight_smile:

ToddL1962:
Your code doesn't compile. :slight_smile:

Oops

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.