C Logical in If's And & Or with a numerical value : <p>I am making a project for my school about digital locks and using an accelerometer. But the buzzer won't buzz with my code. I think I have some issues in logical operations in if's. </p>

<pre><code>void loop() {
  recordAccelRegisters();
  if((gForceX || gForceY || gForceZ) &gt; 1) {
    tone(2, 2000);
    delay(1000);
    noTone(2);
  }
  Serial.print(gForceX);
  Serial.print(" ");
  Serial.print(gForceY);
  Serial.print(" ");
  Serial.print(gForceZ);
  Serial.println();
  delay(100);
</code></pre>
