         Serial.println("WIN");
     } else if (result >= THRESHOLD_GOOD){
         wordresult = good;
-        Serial.println("GOOD");
+        Serial.println("GOOD"); 
     } else {
         wordresult = fail;
         Serial.println("FAIL");

        }
        */

        if(sensorValue > THRESHOLD_FAIL)
        {
            clapMeterOn = true;
            clapMeter = clapMeter + sensorValue;
            counter++;
        }
   }
   if (clapMeterOn == true && sensorValue < 50)
   {
        average = clapMeter/counter;
        Serial.println("FIN DEL CONTEO");
        Serial.println(average);
        clapMeterOn = false;
        //show_results

        counter = 0;
        clapMeter = 0;
    }

    scanning = false;

}

void lcd_init()
{


#define SOUND_SENSOR A0
#define SOUND_SENSOR_2 A2
#define THRESHOLD_FAIL 400 //The threshold to turn the led on 400.00*5/1024 = 1.95v
#define THRESHOLD_GOOD 400
#define THRESHOLD_WIN 600

